pub struct BootOrchestrator { /* private fields */ }Expand description
Boot orchestrator that coordinates the full boot sequence
Implementations§
Source§impl BootOrchestrator
impl BootOrchestrator
Sourcepub fn new(budgets: BootBudgets) -> Self
pub fn new(budgets: BootBudgets) -> Self
Create a new boot orchestrator
Sourcepub fn fsm(&self) -> Arc<BootStateMachine>
pub fn fsm(&self) -> Arc<BootStateMachine>
Get the FSM for health checks
Sourcepub fn run_boot<I, M, R, W>(
&self,
recovery_mode: RecoveryMode,
init_fn: I,
migrate_fn: M,
recover_fn: R,
warmup_fn: W,
) -> Result<(), BootError>where
I: FnOnce(&BootStateMachine) -> Result<(), BootError>,
M: FnOnce(&BootStateMachine) -> Result<(), BootError>,
R: FnOnce(&BootStateMachine) -> Result<PreloadHints, BootError>,
W: FnOnce(&BootStateMachine, PreloadHints) -> Result<(), BootError>,
pub fn run_boot<I, M, R, W>(
&self,
recovery_mode: RecoveryMode,
init_fn: I,
migrate_fn: M,
recover_fn: R,
warmup_fn: W,
) -> Result<(), BootError>where
I: FnOnce(&BootStateMachine) -> Result<(), BootError>,
M: FnOnce(&BootStateMachine) -> Result<(), BootError>,
R: FnOnce(&BootStateMachine) -> Result<PreloadHints, BootError>,
W: FnOnce(&BootStateMachine, PreloadHints) -> Result<(), BootError>,
Run the boot sequence with callbacks for each phase
Auto Trait Implementations§
impl Freeze for BootOrchestrator
impl !RefUnwindSafe for BootOrchestrator
impl Send for BootOrchestrator
impl Sync for BootOrchestrator
impl Unpin for BootOrchestrator
impl UnsafeUnpin for BootOrchestrator
impl !UnwindSafe for BootOrchestrator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more