pub struct EntryScanner {
boot_services: *const BootServices,
image_handle: *mut (),
}Fields§
§boot_services: *const BootServices§image_handle: *mut ()Implementations§
Source§impl EntryScanner
impl EntryScanner
pub fn new(boot_services: *const BootServices, image_handle: *mut ()) -> Self
pub fn scan_boot_entries(&self) -> Vec<BootEntry>
Sourcefn scan_chunked_isos(&self) -> Vec<BootEntry>
fn scan_chunked_isos(&self) -> Vec<BootEntry>
Scan for ISOs stored in chunked format via IsoStorageManager
fn extract_distro_from_name(name: &str) -> String
unsafe fn kernel_exists(&self, root: *mut FileProtocol, path: &str) -> bool
unsafe fn get_esp_root(&self) -> Result<*mut FileProtocol, ()>
unsafe fn scan_kernels( &self, root: *mut FileProtocol, ) -> Result<Vec<BootEntry>, ()>
unsafe fn enumerate_kernels( &self, dir: *mut FileProtocol, ) -> Result<Vec<BootEntry>, ()>
fn parse_file_info(&self, data: &[u8]) -> Option<BootEntry>
fn extract_filename(data: &[u8]) -> Option<String>
fn extract_distro_name(filename: &str) -> String
fn guess_initrd_path(kernel_name: &str) -> Option<String>
fn generate_cmdline(distro: &str) -> String
unsafe fn scan_loader_entries( &self, root: *mut FileProtocol, ) -> Result<Vec<BootEntry>, ()>
unsafe fn parse_conf_file( &self, root: *mut FileProtocol, path: &str, ) -> Result<BootEntry, ()>
fn create_fallback_entry(&self) -> BootEntry
fn str_to_utf16(s: &str) -> Vec<u16>
Auto Trait Implementations§
impl Freeze for EntryScanner
impl RefUnwindSafe for EntryScanner
impl !Send for EntryScanner
impl !Sync for EntryScanner
impl Unpin for EntryScanner
impl UnwindSafe for EntryScanner
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