morpheus_bootloader::tui::distro_launcher::ui

Struct DistroLauncher

Source
pub struct DistroLauncher {
    entries: Vec<BootEntry>,
    selected_index: usize,
}

Fields§

§entries: Vec<BootEntry>§selected_index: usize

Implementations§

Source§

impl DistroLauncher

Source

pub(super) fn boot_entry( &self, screen: &mut Screen, keyboard: &mut Keyboard, boot_services: &BootServices, system_table: *mut (), image_handle: *mut (), entry: &BootEntry, )

Source

fn boot_from_iso( &self, screen: &mut Screen, keyboard: &mut Keyboard, boot_services: &BootServices, system_table: *mut (), image_handle: *mut (), entry: &BootEntry, )

Source

fn boot_from_chunked_iso( &self, screen: &mut Screen, keyboard: &mut Keyboard, boot_services: &BootServices, system_table: *mut (), image_handle: *mut (), entry: &BootEntry, )

Boot from a chunked ISO stored via IsoStorageManager

Source

fn get_first_disk_block_io( boot_services: &BootServices, ) -> Option<*mut BlockIoProtocol>

Get BlockIoProtocol pointer for first physical disk

Source

unsafe fn get_esp_root( boot_services: &BootServices, image_handle: *mut (), ) -> Result<*mut FileProtocol, ()>

Source

fn read_file_to_uefi_pages( boot_services: &BootServices, image_handle: *mut (), path: &str, screen: &mut Screen, max_size: usize, start_line: usize, ) -> Result<(*mut u8, usize), &'static str>

Source§

impl DistroLauncher

Source

pub(super) fn await_failure( screen: &mut Screen, keyboard: &mut Keyboard, start_line: usize, message: &str, log_tag: &'static str, )

Source

pub(super) fn dump_logs_to_screen(screen: &mut Screen)

Source

pub(super) fn describe_boot_error(error: &BootError) -> String

Source§

impl DistroLauncher

Source

pub fn new(boot_services: *const BootServices, image_handle: *mut ()) -> Self

Source

fn select_next(&mut self)

Source

fn select_prev(&mut self)

Source

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

Source

pub fn run( &mut self, screen: &mut Screen, keyboard: &mut Keyboard, boot_services: &BootServices, system_table: *mut (), image_handle: *mut (), )

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.