morpheus_bootloader::tui::storage_manager

Struct StorageManager

Source
pub struct StorageManager {
    disk_manager: DiskManager,
    selected_disk: usize,
    view_mode: ViewMode,
    partition_table: PartitionTable,
    selected_partition: usize,
    current_disk_index: usize,
    free_space_mb: u64,
    rain: MatrixRain,
}

Fields§

§disk_manager: DiskManager§selected_disk: usize§view_mode: ViewMode§partition_table: PartitionTable§selected_partition: usize§current_disk_index: usize§free_space_mb: u64§rain: MatrixRain

Implementations§

Source§

impl StorageManager

Source

pub(super) fn format_partition_ui( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )

Source§

impl StorageManager

Source

pub(super) fn scan_disk( &mut self, disk_index: usize, bs: &BootServices, ) -> Result<(), usize>

Source

pub(super) fn create_gpt_interactive( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )

Source§

impl StorageManager

Source

pub(in tui::storage_manager) fn create_partition_ui( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )

Source§

impl StorageManager

Source

pub(in tui::storage_manager) fn delete_partition_ui( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )

Source§

impl StorageManager

Source

pub(in tui::storage_manager) fn shrink_partition_ui( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )

Source§

impl StorageManager

Source

pub(in tui::storage_manager) fn render_disk_list( &self, screen: &mut Screen, )

Source§

impl StorageManager

Source

pub(in tui::storage_manager) fn render_partition_view( &self, screen: &mut Screen, )

Source§

impl StorageManager

Source

pub fn new(screen: &Screen) -> Self

Source

pub fn select_next(&mut self)

Source

pub fn select_prev(&mut self)

Source

fn format_number(num: u64, buf: &mut [u8]) -> usize

Source

pub fn run( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, ) -> bool

Source

fn handle_input( &mut self, key: InputKey, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, ) -> bool

Source

fn handle_disk_selection( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )

Source

fn render(&mut self, screen: &mut Screen)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.