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>,
impl<Role, Worker, Plan> FixedLifecycle<Role, Worker, Plan>where
Worker: Behavior,
Plan: ActivationPlan,
BehaviorAddr<Worker>: EndpointAddress,
StableProxy<Worker, Plan>: Behavior<Protocol = Worker::Protocol>,
Sourcepub fn event(&self) -> FixedLifecycleEvent<'_, Role, Worker, Plan>
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>
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>
impl<Role, Worker, Plan> Sync for FixedLifecycle<Role, Worker, Plan>
impl<Role, Worker, Plan> Unpin for FixedLifecycle<Role, Worker, Plan>
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> 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