Skip to main content

BeginActivation

Struct BeginActivation 

Source
pub struct BeginActivation<W, P>{ /* private fields */ }
Expand description

One activation request consuming an initialized worker permit and plan.

ⓘ
fn duplicate<W, P>(request: behavior_actors::atomic::BeginActivation<W, P>)
where
    W: behavior::Behavior,
    behavior::BehaviorAddr<W>: behavior::EndpointAddress,
    P: behavior_actors::atomic::ActivationPlan,
{
    let _accepted = request;
    let _duplicate = request;
}

Implementations§

Source§

impl<W, P> BeginActivation<W, P>

Source

pub fn new(plan: P, permit: ActivationPermit<W>) -> Self

Consume the successful initialization authority and concrete plan.

Source

pub fn into_parts(self) -> (ActivationPermit<W>, P, WorkerActivationGrant<W, P>)

Transfer original permit/plan and its exact typed grant independently.

Source

pub fn target(&self) -> EstablishedRecipient<W::Protocol>

Exact installed worker target carried by the permit.

Source

pub fn worker(&self) -> WorkerAttempt

Worker creation correlation authorized by the consumed permit.

Source

pub fn initialization(&self) -> InitializationAttempt

Initialization correlation authorized by the consumed permit.

Source

pub fn started(&self) -> WorkerActivation<W, P>

Produce the input Bombay must admit before polling the plan.

Source

pub fn start_rejected( self, reason: ActivationStartRejection, ) -> WorkerActivation<W, P>

Return a request that its owner could not admit.

Source

pub async fn activate(self) -> WorkerActivation<W, P>

Consume the plan and produce its exact ready or rejected input.

Trait Implementations§

Auto Trait Implementations§

§

impl<W, P> Freeze for BeginActivation<W, P>

§

impl<W, P> RefUnwindSafe for BeginActivation<W, P>

§

impl<W, P> Send for BeginActivation<W, P>

§

impl<W, P> Sync for BeginActivation<W, P>

§

impl<W, P> Unpin for BeginActivation<W, P>

§

impl<W, P> UnsafeUnpin for BeginActivation<W, P>

§

impl<W, P> UnwindSafe for BeginActivation<W, P>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.