pub struct InitializeWorker<W, P>{ /* private fields */ }Expand description
One child-host request retaining the exact activation plan.
ⓘ
fn duplicate<W, P>(request: behavior_actors::atomic::InitializeWorker<W, P>)
where
W: behavior::Behavior,
behavior::BehaviorAddr<W>: behavior::EndpointAddress,
{
let _accepted = request;
let _duplicate = request;
}Implementations§
Source§impl<W, P> InitializeWorker<W, P>
impl<W, P> InitializeWorker<W, P>
Sourcepub fn target(&self) -> EstablishedRecipient<W::Protocol>
pub fn target(&self) -> EstablishedRecipient<W::Protocol>
Exact installed-worker target retained by this request.
Sourcepub fn worker(&self) -> WorkerAttempt
pub fn worker(&self) -> WorkerAttempt
Worker-creation correlation retained by the proxy.
Sourcepub fn initialization(&self) -> InitializationAttempt
pub fn initialization(&self) -> InitializationAttempt
Initialization correlation retained by the proxy.
Sourcepub fn resolve(
self,
result: WorkerInitializationOutcome<W>,
) -> WorkerInitializationReport<W, P>
pub fn resolve( self, result: WorkerInitializationOutcome<W>, ) -> WorkerInitializationReport<W, P>
Reunite the host result with the affine activation plan.
Trait Implementations§
Source§impl<W, P> ActionItem for InitializeWorker<W, P>where
W: Behavior,
BehaviorAddr<W>: EndpointAddress,
EstablishedRecipient<W::Protocol>: Send,
P: Send,
impl<W, P> ActionItem for InitializeWorker<W, P>where
W: Behavior,
BehaviorAddr<W>: EndpointAddress,
EstablishedRecipient<W::Protocol>: Send,
P: Send,
type Custody = (Option<InitializeWorker<W, P>>, Option<<InitializeWorker<W, P> as ActionItem>::Reply>)
type Input<'a> = &'a mut Option<InitializeWorker<W, P>> where Self: 'a
type Reply = ItemSettlement<InitializeWorker<W, P>, <InitializeWorker<W, P> as ActionItem>::Accepted, <InitializeWorker<W, P> as ActionItem>::Rejection, <InitializeWorker<W, P> as ActionItem>::Prerequisite>
type Accepted = ()
type Rejection = Never
type Prerequisite = Never
fn prepare_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::Custody, Self::Reply>>, )
fn interpretation_input<'a>(
custody: &'a mut Self::Custody,
) -> Option<(Self::Input<'a>, &'a mut Option<Self::Reply>)>where
Self: 'a,
fn finish_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::Custody, Self::Reply>>, )
Source§impl<W, P> InterpreterRequest for InitializeWorker<W, P>
impl<W, P> InterpreterRequest for InitializeWorker<W, P>
Auto Trait Implementations§
impl<W, P> Freeze for InitializeWorker<W, P>
impl<W, P> RefUnwindSafe for InitializeWorker<W, P>where
<<W as Behavior>::Protocol as Protocol>::Addr: Sized,
P: RefUnwindSafe,
<<<W as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<W as Behavior>::Protocol>: RefUnwindSafe,
impl<W, P> Send for InitializeWorker<W, P>
impl<W, P> Sync for InitializeWorker<W, P>
impl<W, P> Unpin for InitializeWorker<W, P>
impl<W, P> UnsafeUnpin for InitializeWorker<W, P>where
<<W as Behavior>::Protocol as Protocol>::Addr: Sized,
P: UnsafeUnpin,
<<<W as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<W as Behavior>::Protocol>: UnsafeUnpin,
impl<W, P> UnwindSafe for InitializeWorker<W, P>where
<<W as Behavior>::Protocol as Protocol>::Addr: Sized,
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