pub struct BootParams { /* private fields */ }Expand description
One-shot MSB_* env vars consumed by init::init and dropped afterward.
Moved by value into init; owning the data (rather than borrowing) makes the “consumed once” lifetime explicit in the signature and prevents accidental reads after init completes.
Implementations§
Source§impl BootParams
impl BootParams
Sourcepub fn from_env() -> AgentdResult<Self>
pub fn from_env() -> AgentdResult<Self>
Reads and parses the boot-time MSB_* environment variables.
Empty or whitespace-only values are treated as absent (None).
Returns an error if any present value fails to parse.
Sourcepub fn take_handoff_init(&mut self) -> Option<HandoffInit>
pub fn take_handoff_init(&mut self) -> Option<HandoffInit>
Take the handoff-init spec out of the boot params.
Used by bin/main.rs before init::init consumes BootParams
by value, since the handoff hook fires after init returns.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BootParams
impl RefUnwindSafe for BootParams
impl Send for BootParams
impl Sync for BootParams
impl Unpin for BootParams
impl UnsafeUnpin for BootParams
impl UnwindSafe for BootParams
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