pub struct Prepared<S, I> { /* private fields */ }Expand description
Fully validated, proof-carrying startup input for one worker driver.
Retains the installer with its claims until the exact domain is entered.
Implementations§
Source§impl<S, I> Prepared<S, I>where
S: Direct,
impl<S, I> Prepared<S, I>where
S: Direct,
pub fn enter_local<O, R, Done>( self, op: O, report: impl Observe, finish: impl for<'owner> FnOnce(Result<R, EnterError<'owner, Infallible, (I, O), R>>) -> Done, ) -> Done
pub fn with_local<F, R, Done>( self, op: F, report: impl Observe, finish: impl for<'owner> FnOnce(Result<R, EnterError<'owner, Infallible, (I, F), R>>) -> Done, ) -> Done
pub fn enter<C, O, R, Done>( self, context: C, op: O, report: impl Observe, finish: impl for<'owner> FnOnce(Result<R, EnterError<'owner, Infallible, (I, O), R, C::Shutdown>>) -> Done, ) -> Done
pub fn enter_with<C, F, R, Done>( self, context: C, op: F, report: impl Observe, finish: impl for<'owner> FnOnce(Result<R, EnterError<'owner, Infallible, (I, F), R, C::Shutdown>>) -> Done, ) -> Done
Sourcepub fn run<'report, C, F>(
self,
context: C,
complete: &'report mut Completion,
report: impl Observe,
failed: impl for<'owner> FnOnce(RunError<'owner, Infallible, I::Error, (I, Run<'report>), Requested<C::Shutdown>, C::Shutdown>) -> Result<Requested<C::Shutdown>, F>,
) -> Result<Requested<C::Shutdown>, F>
pub fn run<'report, C, F>( self, context: C, complete: &'report mut Completion, report: impl Observe, failed: impl for<'owner> FnOnce(RunError<'owner, Infallible, I::Error, (I, Run<'report>), Requested<C::Shutdown>, C::Shutdown>) -> Result<Requested<C::Shutdown>, F>, ) -> Result<Requested<C::Shutdown>, F>
Installs and runs one application, retaining every failure for its handler.
Source§impl<S, I> Prepared<S, I>where
S: Build,
impl<S, I> Prepared<S, I>where
S: Build,
pub fn try_local<O, R, Done>( self, op: O, report: impl Observe, finish: impl for<'owner> FnOnce(Result<R, EnterError<'owner, S::Error, (I, O), R>>) -> Done, ) -> Done
pub fn try_scoped<F, R, Done>( self, op: F, report: impl Observe, finish: impl for<'owner> FnOnce(Result<R, EnterError<'owner, S::Error, (I, F), R>>) -> Done, ) -> Done
pub fn try_enter<C, O, R, Done>( self, context: C, op: O, report: impl Observe, finish: impl for<'owner> FnOnce(Result<R, EnterError<'owner, S::Error, (I, O), R, C::Shutdown>>) -> Done, ) -> Done
pub fn try_with<C, F, R, Done>( self, context: C, op: F, report: impl Observe, finish: impl for<'owner> FnOnce(Result<R, EnterError<'owner, S::Error, (I, F), R, C::Shutdown>>) -> Done, ) -> Done
Source§impl<S, I> Prepared<S, I>where
S: Create,
impl<S, I> Prepared<S, I>where
S: Create,
pub fn try_create<C, F, R, Done>( self, context: C, op: F, report: impl Observe, finish: impl for<'owner> FnOnce(Result<R, EnterError<'owner, S::Error, (I, F), R, C::Shutdown>>) -> Done, ) -> Done
pub fn try_scope<C, O, R, Done>( self, context: C, op: O, report: impl Observe, finish: impl for<'owner> FnOnce(Result<R, EnterError<'owner, S::Error, (I, O), R, C::Shutdown>>) -> Done, ) -> Done
Auto Trait Implementations§
impl<S, I> Forget for Prepared<S, I>
impl<S, I> Freeze for Prepared<S, I>
impl<S, I> RefUnwindSafe for Prepared<S, I>
impl<S, I> Send for Prepared<S, I>
impl<S, I> Sync for Prepared<S, I>
impl<S, I> Unpin for Prepared<S, I>
impl<S, I> UnsafeUnpin for Prepared<S, I>
impl<S, I> UnwindSafe for Prepared<S, I>
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