pub struct IsoManager {
state: IsoManagerState,
storage: IsoStorageManager,
}Expand description
ISO Manager TUI component
Fields§
§state: IsoManagerState§storage: IsoStorageManagerImplementations§
Source§impl IsoManager
impl IsoManager
Sourcepub fn new(esp_start_lba: u64, disk_size_lba: u64) -> Self
pub fn new(esp_start_lba: u64, disk_size_lba: u64) -> Self
Create a new ISO manager
§Arguments
esp_start_lba- Start LBA of ESP partitiondisk_size_lba- Total disk size in LBAs
Sourcepub fn with_storage(storage: IsoStorageManager) -> Self
pub fn with_storage(storage: IsoStorageManager) -> Self
Create with existing storage manager
Sourcepub fn storage(&self) -> &IsoStorageManager
pub fn storage(&self) -> &IsoStorageManager
Get reference to storage manager
Sourcepub fn storage_mut(&mut self) -> &mut IsoStorageManager
pub fn storage_mut(&mut self) -> &mut IsoStorageManager
Get mutable reference to storage manager
Sourcepub fn run(
&mut self,
screen: &mut Screen,
keyboard: &mut Keyboard,
) -> Option<usize>
pub fn run( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, ) -> Option<usize>
Run the ISO manager UI
Returns when user presses ESC or selects boot action. Returns Some(index) if user wants to boot an ISO.
Sourcefn handle_delete(&mut self, idx: usize)
fn handle_delete(&mut self, idx: usize)
Handle delete action
Sourcepub fn get_boot_context(&self, idx: usize) -> Result<IsoReadContext, IsoError>
pub fn get_boot_context(&self, idx: usize) -> Result<IsoReadContext, IsoError>
Get read context for booting an ISO
Sourcepub fn is_bootable(&self, idx: usize) -> bool
pub fn is_bootable(&self, idx: usize) -> bool
Check if an ISO is ready to boot
Auto Trait Implementations§
impl Freeze for IsoManager
impl RefUnwindSafe for IsoManager
impl Send for IsoManager
impl Sync for IsoManager
impl Unpin for IsoManager
impl UnwindSafe for IsoManager
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