morpheus_bootloader::tui::boot_sequence

Struct BootSequence

Source
pub struct BootSequence {
    last_rendered_count: usize,
    last_total_count: usize,
    completed: bool,
}

Fields§

§last_rendered_count: usize§last_total_count: usize§completed: bool

Implementations§

Source§

impl BootSequence

Source

pub fn new() -> Self

Source

pub fn mark_complete(&mut self)

Source

pub fn render(&mut self, screen: &mut Screen, x: usize, y: usize)

Source

pub fn init_network( &mut self, _screen: &mut Screen, _x: usize, _y: usize, _get_time_ms: fn() -> u64, ) -> NetworkBootResult

👎Deprecated: Network init moved to post-EBS. Use download commit flow instead.

Initialize network stack and display result.

DEPRECATED: Network initialization now happens post-ExitBootServices. This function is kept for API compatibility but always returns Skipped.

The new flow is:

  1. Bootstrap completes without network
  2. User browses catalog (static data, no network needed)
  3. User selects ISO and confirms download
  4. ExitBootServices is called
  5. Bare-metal network stack initializes (VirtIO + smoltcp)
  6. Download proceeds, then system reboots
§Arguments
  • _screen - Screen for rendering status (unused)
  • _x, _y - Position for boot sequence display (unused)
  • _get_time_ms - Function returning current time (unused)
§Returns

Always returns NetworkBootResult::Skipped

Source

fn display_network_errors(&self, _screen: &mut Screen, _x: usize, _y: usize)

👎Deprecated: Network init moved to post-EBS

LEGACY: Display network error logs below the boot sequence.

DEPRECATED: No longer used since network init is post-EBS.

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.