pub struct BootSequence {
last_rendered_count: usize,
last_total_count: usize,
completed: bool,
}Fields§
§last_rendered_count: usize§last_total_count: usize§completed: boolImplementations§
Source§impl BootSequence
impl BootSequence
pub fn new() -> Self
pub fn mark_complete(&mut self)
pub fn render(&mut self, screen: &mut Screen, x: usize, y: usize)
Sourcepub 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.
pub fn init_network( &mut self, _screen: &mut Screen, _x: usize, _y: usize, _get_time_ms: fn() -> u64, ) -> NetworkBootResult
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:
- Bootstrap completes without network
- User browses catalog (static data, no network needed)
- User selects ISO and confirms download
- ExitBootServices is called
- Bare-metal network stack initializes (VirtIO + smoltcp)
- 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
Sourcefn display_network_errors(&self, _screen: &mut Screen, _x: usize, _y: usize)
👎Deprecated: Network init moved to post-EBS
fn display_network_errors(&self, _screen: &mut Screen, _x: usize, _y: usize)
LEGACY: Display network error logs below the boot sequence.
DEPRECATED: No longer used since network init is post-EBS.
Auto Trait Implementations§
impl Freeze for BootSequence
impl RefUnwindSafe for BootSequence
impl Send for BootSequence
impl Sync for BootSequence
impl Unpin for BootSequence
impl UnwindSafe for BootSequence
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