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: MatrixRainImplementations§
Source§impl StorageManager
impl StorageManager
pub(super) fn format_partition_ui( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )
Source§impl StorageManager
impl StorageManager
pub(super) fn scan_disk( &mut self, disk_index: usize, bs: &BootServices, ) -> Result<(), usize>
pub(super) fn create_gpt_interactive( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )
Source§impl StorageManager
impl StorageManager
pub(in tui::storage_manager) fn create_partition_ui( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )
Source§impl StorageManager
impl StorageManager
pub(in tui::storage_manager) fn delete_partition_ui( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )
Source§impl StorageManager
impl StorageManager
pub(in tui::storage_manager) fn shrink_partition_ui( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )
Source§impl StorageManager
impl StorageManager
pub(in tui::storage_manager) fn render_disk_list( &self, screen: &mut Screen, )
Source§impl StorageManager
impl StorageManager
pub(in tui::storage_manager) fn render_partition_view( &self, screen: &mut Screen, )
Source§impl StorageManager
impl StorageManager
pub fn new(screen: &Screen) -> Self
pub fn select_next(&mut self)
pub fn select_prev(&mut self)
fn format_number(num: u64, buf: &mut [u8]) -> usize
pub fn run( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, ) -> bool
fn handle_input( &mut self, key: InputKey, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, ) -> bool
fn handle_disk_selection( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, bs: &BootServices, )
fn render(&mut self, screen: &mut Screen)
Auto Trait Implementations§
impl Freeze for StorageManager
impl RefUnwindSafe for StorageManager
impl Send for StorageManager
impl Sync for StorageManager
impl Unpin for StorageManager
impl UnwindSafe for StorageManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more