pub struct FinalizeOnShutdown<B: Behavior> { /* private fields */ }Expand description
Run one explicit final fold and then stop normally.
Trait Implementations§
Source§impl<B, A, Ph, Sends, Br> Behavior for FinalizeOnShutdown<B>where
A: Address,
Sends: SendAlgebra,
Br: BirthMode,
B: Behavior<Addr = A, Ph = Ph, Sends = Sends, Birth = Br>,
impl<B, A, Ph, Sends, Br> Behavior for FinalizeOnShutdown<B>where
A: Address,
Sends: SendAlgebra,
Br: BirthMode,
B: Behavior<Addr = A, Ph = Ph, Sends = Sends, Birth = Br>,
type Addr = A
type Msg = <B as Behavior>::Msg
type Event = ShutdownProtocol<<B as Behavior>::Event>
type Sends = Sends
type Ph = Ph
type Error = <B as Behavior>::Error
type Birth = Br
Source§fn init(
&mut self,
_: InitializationTurn,
) -> Result<Actions<A, Ph, Sends, Br>, B::Error>
fn init( &mut self, _: InitializationTurn, ) -> Result<Actions<A, Ph, Sends, Br>, B::Error>
Produce initialization actions before the first event is accepted. Read more
Source§fn transition(
&mut self,
_: ActiveTurn,
event: Self::Event,
) -> Result<Actions<A, Ph, Sends, Br>, B::Error>
fn transition( &mut self, _: ActiveTurn, event: Self::Event, ) -> Result<Actions<A, Ph, Sends, Br>, B::Error>
Fold exactly one event into explicit actions and the next behavior. Read more
Source§impl<B: Behavior + BehaviorBase> BehaviorBase for FinalizeOnShutdown<B>
impl<B: Behavior + BehaviorBase> BehaviorBase for FinalizeOnShutdown<B>
Source§impl<B> StashStatus for FinalizeOnShutdown<B>where
B: Behavior + StashStatus,
impl<B> StashStatus for FinalizeOnShutdown<B>where
B: Behavior + StashStatus,
fn stashed_messages(&self) -> usize
Auto Trait Implementations§
impl<B> Freeze for FinalizeOnShutdown<B>where
B: Freeze,
impl<B> RefUnwindSafe for FinalizeOnShutdown<B>where
B: RefUnwindSafe,
impl<B> Send for FinalizeOnShutdown<B>where
B: Send,
impl<B> Sync for FinalizeOnShutdown<B>where
B: Sync,
impl<B> Unpin for FinalizeOnShutdown<B>where
B: Unpin,
impl<B> UnsafeUnpin for FinalizeOnShutdown<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for FinalizeOnShutdown<B>where
B: 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