pub struct IsoScanner {
boot_services: *const BootServices,
image_handle: *mut (),
}Fields§
§boot_services: *const BootServices§image_handle: *mut ()Implementations§
Source§impl IsoScanner
impl IsoScanner
pub fn new(boot_services: *const BootServices, image_handle: *mut ()) -> Self
Sourcepub fn scan_iso_files(&self) -> Vec<BootEntry>
pub fn scan_iso_files(&self) -> Vec<BootEntry>
Scan for ISO files and create boot entries
unsafe fn get_esp_root(&self) -> Result<*mut FileProtocol, ()>
unsafe fn enumerate_isos( &self, dir: *mut FileProtocol, ) -> Result<Vec<BootEntry>, ()>
fn parse_iso_file(&self, data: &[u8]) -> Option<BootEntry>
fn extract_filename(data: &[u8]) -> Option<String>
fn extract_distro_from_filename(filename: &str) -> String
fn str_to_utf16(s: &str) -> Vec<u16>
Auto Trait Implementations§
impl Freeze for IsoScanner
impl RefUnwindSafe for IsoScanner
impl !Send for IsoScanner
impl !Sync for IsoScanner
impl Unpin for IsoScanner
impl UnwindSafe for IsoScanner
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