pub enum ShutdownProtocol<E> {
Inner(E),
ShutdownRequested(ShutdownRequested),
}Expand description
The complete protocol of a behavior that supports graceful shutdown.
Variants§
Inner(E)
ShutdownRequested(ShutdownRequested)
Trait Implementations§
Source§impl<E: ChildEvent<A>, A: Address> ChildEvent<A> for ShutdownProtocol<E>
impl<E: ChildEvent<A>, A: Address> ChildEvent<A> for ShutdownProtocol<E>
fn child_stopped(event: ChildStopped<A>) -> Option<Self>
Source§impl<E: Clone> Clone for ShutdownProtocol<E>
impl<E: Clone> Clone for ShutdownProtocol<E>
Source§fn clone(&self) -> ShutdownProtocol<E>
fn clone(&self) -> ShutdownProtocol<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug> Debug for ShutdownProtocol<E>
impl<E: Debug> Debug for ShutdownProtocol<E>
impl<E: Eq> Eq for ShutdownProtocol<E>
Source§impl<E: PartialEq> PartialEq for ShutdownProtocol<E>
impl<E: PartialEq> PartialEq for ShutdownProtocol<E>
Source§impl<E: PeerEvent<A>, A: Address> PeerEvent<A> for ShutdownProtocol<E>
impl<E: PeerEvent<A>, A: Address> PeerEvent<A> for ShutdownProtocol<E>
fn peer_stopped(event: PeerStopped<A>) -> Option<Self>
Source§impl<E> ShutdownEvent for ShutdownProtocol<E>
impl<E> ShutdownEvent for ShutdownProtocol<E>
fn shutdown_requested(event: ShutdownRequested) -> Option<Self>
impl<E: PartialEq> StructuralPartialEq for ShutdownProtocol<E>
Source§impl<E: TimeEvent> TimeEvent for ShutdownProtocol<E>
impl<E: TimeEvent> TimeEvent for ShutdownProtocol<E>
fn time_reached(event: TimerElapsed) -> Option<Self>
Source§impl<E: UserEvent> UserEvent for ShutdownProtocol<E>
impl<E: UserEvent> UserEvent for ShutdownProtocol<E>
Source§impl<E: WorkerEvent<A>, A: Address> WorkerEvent<A> for ShutdownProtocol<E>
impl<E: WorkerEvent<A>, A: Address> WorkerEvent<A> for ShutdownProtocol<E>
fn worker_stopped(event: WorkerStopped<A>) -> Option<Self>
Auto Trait Implementations§
impl<E> Freeze for ShutdownProtocol<E>where
E: Freeze,
impl<E> RefUnwindSafe for ShutdownProtocol<E>where
E: RefUnwindSafe,
impl<E> Send for ShutdownProtocol<E>where
E: Send,
impl<E> Sync for ShutdownProtocol<E>where
E: Sync,
impl<E> Unpin for ShutdownProtocol<E>where
E: Unpin,
impl<E> UnsafeUnpin for ShutdownProtocol<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for ShutdownProtocol<E>where
E: 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