pub struct Worker<'scope, 'life: 'scope, 'p: 'life, 'd: 'p, S: Plan + 'd, I: 'd, Q: 'd> { /* private fields */ }Expand description
Generative worker scope after storage construction and before application install.
Implementations§
Source§impl<'scope, 'life: 'scope, 'p: 'life, 'd: 'p, S, I, Q> Worker<'scope, 'life, 'p, 'd, S, I, Q>
impl<'scope, 'life: 'scope, 'p: 'life, 'd: 'p, S, I, Q> Worker<'scope, 'life, 'p, 'd, S, I, Q>
Sourcepub fn storage(&self) -> &'life S::Output<'p, 'd>
pub fn storage(&self) -> &'life S::Output<'p, 'd>
Borrows storage from the exact prepared domain.
Sourcepub fn lend<R>(
self,
compose: impl FnOnce(I, &mut Stage<'_, 'scope, 'life, 'p, 'd, S, Q>) -> R,
) -> R
pub fn lend<R>( self, compose: impl FnOnce(I, &mut Stage<'_, 'scope, 'life, 'p, 'd, S, Q>) -> R, ) -> R
Consumes the retained specification in one lexical lending scope.
Sourcepub fn with<N, R, E>(self, next: N) -> Result<R, E>
pub fn with<N, R, E>(self, next: N) -> Result<R, E>
Runs the retained installer and consumer inside their storage loans.
Sourcepub fn install_with<A, R, E>(
self,
install: impl FnOnce(I, &Boot<'_, 'scope, 'life, 'p, 'd, S, Q>) -> R,
) -> Result<Application<'scope, 'life, 'p, 'd, S, A, Q>, InstallError<E>>
pub fn install_with<A, R, E>( self, install: impl FnOnce(I, &Boot<'_, 'scope, 'life, 'p, 'd, S, Q>) -> R, ) -> Result<Application<'scope, 'life, 'p, 'd, S, A, Q>, InstallError<E>>
Drives a yielding installation before publishing the resulting application. Rejects existing native work and cancels the unpolled root on admission failure.
Trait Implementations§
Source§impl<'scope, 'life, 'p, 'd, S, I, T, Q> Operation<'d, Worker<'scope, 'life, 'p, 'd, S, (I, T), Q>> for Compose
impl<'scope, 'life, 'p, 'd, S, I, T, Q> Operation<'d, Worker<'scope, 'life, 'p, 'd, S, (I, T), Q>> for Compose
Auto Trait Implementations§
impl<'scope, 'life, 'p, 'd, S, I, Q> !RefUnwindSafe for Worker<'scope, 'life, 'p, 'd, S, I, Q>
impl<'scope, 'life, 'p, 'd, S, I, Q> !Send for Worker<'scope, 'life, 'p, 'd, S, I, Q>
impl<'scope, 'life, 'p, 'd, S, I, Q> !Sync for Worker<'scope, 'life, 'p, 'd, S, I, Q>
impl<'scope, 'life, 'p, 'd, S, I, Q> !UnwindSafe for Worker<'scope, 'life, 'p, 'd, S, I, Q>
impl<'scope, 'life, 'p, 'd, S, I, Q> Freeze for Worker<'scope, 'life, 'p, 'd, S, I, Q>
impl<'scope, 'life, 'p, 'd, S, I, Q> Unpin for Worker<'scope, 'life, 'p, 'd, S, I, Q>
impl<'scope, 'life, 'p, 'd, S, I, Q> UnsafeUnpin for Worker<'scope, 'life, 'p, 'd, S, I, Q>
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