pub struct BootLoader { /* private fields */ }Expand description
Main boot loader.
Orchestrates the five-stage boot sequence:
- Stage 0: Hardware initialization
- Stage 1: RVF manifest verification
- Stage 2: Kernel object creation
- Stage 3: Component mount + capability distribution
- Stage 4: First attestation
Implementations§
Source§impl BootLoader
impl BootLoader
Sourcepub fn new(config: BootConfig) -> Self
pub fn new(config: BootConfig) -> Self
Creates a new boot loader with the given configuration.
Sourcepub fn boot(
&mut self,
manifest_bytes: &[u8],
signature: &[u8],
) -> Result<&BootResult, KernelError>
pub fn boot( &mut self, manifest_bytes: &[u8], signature: &[u8], ) -> Result<&BootResult, KernelError>
Sourcepub fn current_stage(&self) -> BootStage
pub fn current_stage(&self) -> BootStage
Returns the current boot stage.
Sourcepub fn result(&self) -> &BootResult
pub fn result(&self) -> &BootResult
Returns the boot result (may be incomplete if boot failed).
Sourcepub fn sec001_compliant(&self) -> bool
pub fn sec001_compliant(&self) -> bool
Checks if SEC-001 capability drop was performed.
Auto Trait Implementations§
impl Freeze for BootLoader
impl RefUnwindSafe for BootLoader
impl Send for BootLoader
impl Sync for BootLoader
impl Unpin for BootLoader
impl UnsafeUnpin for BootLoader
impl UnwindSafe for BootLoader
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