pub struct StopOnShutdown<B> { /* private fields */ }Expand description
Stop normally when the shutdown lane is received.
Implementations§
Trait Implementations§
Source§impl<B, A, Ph, Sends, Br> Behavior for StopOnShutdown<B>
impl<B, A, Ph, Sends, Br> Behavior for StopOnShutdown<B>
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
async fn init(&mut self) -> Result<Actions<A, Ph, Sends, Br>, B::Error>
async fn step( &mut self, event: Self::Event, ) -> Result<Actions<A, Ph, Sends, Br>, B::Error>
Auto Trait Implementations§
impl<B> Freeze for StopOnShutdown<B>where
B: Freeze,
impl<B> RefUnwindSafe for StopOnShutdown<B>where
B: RefUnwindSafe,
impl<B> Send for StopOnShutdown<B>where
B: Send,
impl<B> Sync for StopOnShutdown<B>where
B: Sync,
impl<B> Unpin for StopOnShutdown<B>where
B: Unpin,
impl<B> UnsafeUnpin for StopOnShutdown<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for StopOnShutdown<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