pub struct WorkerActivation<W, P>{ /* private fields */ }Expand description
Exact input produced by one accepted worker activation request.
Implementations§
Source§impl<W, P> WorkerActivation<W, P>
impl<W, P> WorkerActivation<W, P>
Sourcepub fn worker(&self) -> WorkerAttempt
pub fn worker(&self) -> WorkerAttempt
Worker creation correlation carried by this input.
Sourcepub fn into_ready(self) -> Result<P::Ready, Self>
pub fn into_ready(self) -> Result<P::Ready, Self>
Consume readiness only when this is the ready alternative.
Sourcepub fn into_rejection(self) -> Result<P::Rejection, Self>
pub fn into_rejection(self) -> Result<P::Rejection, Self>
Consume the application rejection only when this is the rejected alternative.
Auto Trait Implementations§
impl<W, P> Freeze for WorkerActivation<W, P>
impl<W, P> RefUnwindSafe for WorkerActivation<W, P>where
<<W as Behavior>::Protocol as Protocol>::Addr: Sized,
<P as ActivationPlan>::Ready: RefUnwindSafe,
<P as ActivationPlan>::Rejection: RefUnwindSafe,
P: RefUnwindSafe,
<<<W as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<W as Behavior>::Protocol>: RefUnwindSafe,
impl<W, P> Send for WorkerActivation<W, P>
impl<W, P> Sync for WorkerActivation<W, P>
impl<W, P> Unpin for WorkerActivation<W, P>
impl<W, P> UnsafeUnpin for WorkerActivation<W, P>where
<<W as Behavior>::Protocol as Protocol>::Addr: Sized,
<P as ActivationPlan>::Ready: UnsafeUnpin,
<P as ActivationPlan>::Rejection: UnsafeUnpin,
P: UnsafeUnpin,
<<<W as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<W as Behavior>::Protocol>: UnsafeUnpin,
impl<W, P> UnwindSafe for WorkerActivation<W, P>where
<<W as Behavior>::Protocol as Protocol>::Addr: Sized,
<P as ActivationPlan>::Ready: UnwindSafe,
<P as ActivationPlan>::Rejection: UnwindSafe,
P: UnwindSafe,
<<<W as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<W as Behavior>::Protocol>: 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