Skip to main content

FixedLifecycle

Struct FixedLifecycle 

Source
pub struct FixedLifecycle<Role, Worker, Plan>
where Worker: Behavior, Plan: ActivationPlan, BehaviorAddr<Worker>: EndpointAddress, StableProxy<Worker, Plan>: Behavior<Protocol = Worker::Protocol>,
{ /* private fields */ }
Expand description

One lifecycle message published by a fixed supervisor.

The role is stored once even though the lifecycle change is exhaustive. FixedLifecycle::event exposes a borrowed application view without requiring Role: Clone.

Implementations§

Source§

impl<Role, Worker, Plan> FixedLifecycle<Role, Worker, Plan>
where Worker: Behavior, Plan: ActivationPlan, BehaviorAddr<Worker>: EndpointAddress, StableProxy<Worker, Plan>: Behavior<Protocol = Worker::Protocol>,

Source

pub fn event(&self) -> FixedLifecycleEvent<'_, Role, Worker, Plan>

Inspect the complete lifecycle change while borrowing its role and affine payloads.

Auto Trait Implementations§

§

impl<Role, Worker, Plan> Freeze for FixedLifecycle<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + Freeze, <<Worker as Behavior>::Protocol as Protocol>::Msg: Freeze, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Installed<StableProxy<Worker, Plan>>: Freeze,

§

impl<Role, Worker, Plan> RefUnwindSafe for FixedLifecycle<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + RefUnwindSafe, <<Worker as Behavior>::Protocol as Protocol>::Msg: RefUnwindSafe, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Installed<StableProxy<Worker, Plan>>: RefUnwindSafe, Role: RefUnwindSafe,

§

impl<Role, Worker, Plan> Send for FixedLifecycle<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + Send, <<Worker as Behavior>::Protocol as Protocol>::Msg: Send, Role: Sync + Send, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Installed<StableProxy<Worker, Plan>>: Send,

§

impl<Role, Worker, Plan> Sync for FixedLifecycle<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + Sync, <<Worker as Behavior>::Protocol as Protocol>::Msg: Sync, Role: Sync + Send, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Installed<StableProxy<Worker, Plan>>: Sync,

§

impl<Role, Worker, Plan> Unpin for FixedLifecycle<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + Unpin, <<Worker as Behavior>::Protocol as Protocol>::Msg: Unpin, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Installed<StableProxy<Worker, Plan>>: Unpin,

§

impl<Role, Worker, Plan> UnsafeUnpin for FixedLifecycle<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + UnsafeUnpin, <<Worker as Behavior>::Protocol as Protocol>::Msg: UnsafeUnpin, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Installed<StableProxy<Worker, Plan>>: UnsafeUnpin,

§

impl<Role, Worker, Plan> UnwindSafe for FixedLifecycle<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + UnwindSafe, <<Worker as Behavior>::Protocol as Protocol>::Msg: UnwindSafe, Role: RefUnwindSafe, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Installed<StableProxy<Worker, Plan>>: UnwindSafe,

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.