pub struct WorkerActivationGrant<W, P> { /* private fields */ }Expand description
The original worker/plan-typed activation correlation issued with a permit.
Readiness and rejection are absent from this owner. Its original private issuer remains inside BeginActivation. A caller cannot fabricate a grant, but into_parts returns the original permit and supports reissuing a request. This owner does not impose a one-mint-ever policy on that affine permit.
Implementations§
Source§impl<W, P> WorkerActivationGrant<W, P>
impl<W, P> WorkerActivationGrant<W, P>
Sourcepub fn worker(&self) -> WorkerAttempt
pub fn worker(&self) -> WorkerAttempt
Original worker correlation carried by this grant.
Source§impl<W, P> WorkerActivationGrant<W, P>
impl<W, P> WorkerActivationGrant<W, P>
Sourcepub fn resolve(
&self,
reply: Result<P::Ready, P::Rejection>,
) -> WorkerActivation<W, P>
pub fn resolve( &self, reply: Result<P::Ready, P::Rejection>, ) -> WorkerActivation<W, P>
Form the existing input from the original concrete plan’s acquired reply.
The independent correlation stays owned, as when started() produces a correlated input. Acceptance remains the actor’s existing policy. The receiving actor applies its existing correlation policy. Resolving a reply does not consume the initialization permit.