pub struct Engine<'a> {
pub store: &'a Store,
pub substrate: &'a dyn Substrate,
}Fields§
§store: &'a Store§substrate: &'a dyn SubstrateImplementations§
Source§impl Engine<'_>
impl Engine<'_>
Sourcepub async fn up(&self, request: UpRequest<'_>) -> Result<UpOutcome, EngineError>
pub async fn up(&self, request: UpRequest<'_>) -> Result<UpOutcome, EngineError>
Bring an instance up, resuming if it exists (invariant 3 — there is no separate resume verb).
Sourcepub async fn down(&self, instance: &str) -> Result<DownOutcome, EngineError>
pub async fn down(&self, instance: &str) -> Result<DownOutcome, EngineError>
Verified teardown, dependents-first (reverse journal order).
Exits with survivors listed if anything that bills or holds
state remains — the same path down and the reaper use.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Engine<'a>
impl<'a> !Send for Engine<'a>
impl<'a> !Sync for Engine<'a>
impl<'a> !UnwindSafe for Engine<'a>
impl<'a> Freeze for Engine<'a>
impl<'a> Unpin for Engine<'a>
impl<'a> UnsafeUnpin for Engine<'a>
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