pub struct ActionQueueEngine<H: ExecutorHandler> { /* private fields */ }Expand description
Pre-bootstrap engine configuration holder.
Implementations§
Source§impl<H: ExecutorHandler + 'static> ActionQueueEngine<H>
impl<H: ExecutorHandler + 'static> ActionQueueEngine<H>
Sourcepub fn new(config: RuntimeConfig, handler: H) -> Self
pub fn new(config: RuntimeConfig, handler: H) -> Self
Creates a new engine with the given configuration and handler.
Sourcepub fn bootstrap(
self,
) -> Result<BootstrappedEngine<H, SystemClock>, BootstrapError>
pub fn bootstrap( self, ) -> Result<BootstrappedEngine<H, SystemClock>, BootstrapError>
Bootstraps the engine by recovering state from storage and constructing the dispatch loop with the system clock.
Sourcepub fn bootstrap_with_clock<C: Clock>(
self,
clock: C,
) -> Result<BootstrappedEngine<H, C>, BootstrapError>
pub fn bootstrap_with_clock<C: Clock>( self, clock: C, ) -> Result<BootstrappedEngine<H, C>, BootstrapError>
Bootstraps with an explicit clock (for testing).
Auto Trait Implementations§
impl<H> Freeze for ActionQueueEngine<H>where
H: Freeze,
impl<H> RefUnwindSafe for ActionQueueEngine<H>where
H: RefUnwindSafe,
impl<H> Send for ActionQueueEngine<H>
impl<H> Sync for ActionQueueEngine<H>
impl<H> Unpin for ActionQueueEngine<H>where
H: Unpin,
impl<H> UnsafeUnpin for ActionQueueEngine<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for ActionQueueEngine<H>where
H: UnwindSafe,
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