pub enum SupervisionEvent<E: UserEvent> {
Inner(E),
ChildStopped(ChildStopped<E::Addr>),
WorkerStopped(WorkerStopped<E::Addr>),
CreationResolved(CreationResolved<<E::Addr as Address>::Nonce>),
WorkerCreationResolved(WorkerCreationResolved<<E::Addr as Address>::Nonce>),
}Variants§
Inner(E)
ChildStopped(ChildStopped<E::Addr>)
WorkerStopped(WorkerStopped<E::Addr>)
CreationResolved(CreationResolved<<E::Addr as Address>::Nonce>)
WorkerCreationResolved(WorkerCreationResolved<<E::Addr as Address>::Nonce>)
Trait Implementations§
Source§impl<E: UserEvent> ChildEvent for SupervisionEvent<E>
impl<E: UserEvent> ChildEvent for SupervisionEvent<E>
fn child_stopped(event: ChildStopped<E::Addr>) -> Option<Self>
Source§impl<E: Clone + UserEvent> Clone for SupervisionEvent<E>
impl<E: Clone + UserEvent> Clone for SupervisionEvent<E>
Source§fn clone(&self) -> SupervisionEvent<E>
fn clone(&self) -> SupervisionEvent<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: UserEvent> CreationEvent for SupervisionEvent<E>
impl<E: UserEvent> CreationEvent for SupervisionEvent<E>
fn creation_resolved( event: CreationResolved<<E::Addr as Address>::Nonce>, ) -> Option<Self>
Source§impl<E: UserEvent> EventInput<ChildStopped<<E as UserEvent>::Addr>> for SupervisionEvent<E>
impl<E: UserEvent> EventInput<ChildStopped<<E as UserEvent>::Addr>> for SupervisionEvent<E>
fn inject(event: ChildStopped<E::Addr>) -> Self
Source§impl<E: UserEvent> EventInput<CreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for SupervisionEvent<E>
impl<E: UserEvent> EventInput<CreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for SupervisionEvent<E>
Source§impl<E> EventInput<PeerStopped<<E as UserEvent>::Addr>> for SupervisionEvent<E>
impl<E> EventInput<PeerStopped<<E as UserEvent>::Addr>> for SupervisionEvent<E>
fn inject(event: PeerStopped<E::Addr>) -> Self
Source§impl<E> EventInput<ShutdownRequested> for SupervisionEvent<E>
impl<E> EventInput<ShutdownRequested> for SupervisionEvent<E>
fn inject(event: ShutdownRequested) -> Self
Source§impl<E> EventInput<TimerElapsed> for SupervisionEvent<E>
impl<E> EventInput<TimerElapsed> for SupervisionEvent<E>
fn inject(event: TimerElapsed) -> Self
Source§impl<E: UserEvent> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for SupervisionEvent<E>
impl<E: UserEvent> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for SupervisionEvent<E>
Source§impl<E: UserEvent> EventInput<WorkerStopped<<E as UserEvent>::Addr>> for SupervisionEvent<E>
impl<E: UserEvent> EventInput<WorkerStopped<<E as UserEvent>::Addr>> for SupervisionEvent<E>
fn inject(event: WorkerStopped<E::Addr>) -> Self
Source§impl<E: PeerEvent> PeerEvent for SupervisionEvent<E>
impl<E: PeerEvent> PeerEvent for SupervisionEvent<E>
fn peer_stopped(event: PeerStopped<E::Addr>) -> Option<Self>
Source§impl<E: ShutdownEvent> ShutdownEvent for SupervisionEvent<E>
impl<E: ShutdownEvent> ShutdownEvent for SupervisionEvent<E>
fn shutdown_requested(event: ShutdownRequested) -> Option<Self>
Source§impl<E: TimeEvent> TimeEvent for SupervisionEvent<E>
impl<E: TimeEvent> TimeEvent for SupervisionEvent<E>
fn time_reached(event: TimerElapsed) -> Option<Self>
Source§impl<E: UserEvent> UserEvent for SupervisionEvent<E>
impl<E: UserEvent> UserEvent for SupervisionEvent<E>
Source§impl<E: UserEvent> WorkerCreationEvent for SupervisionEvent<E>
impl<E: UserEvent> WorkerCreationEvent for SupervisionEvent<E>
fn worker_creation_resolved( event: WorkerCreationResolved<<E::Addr as Address>::Nonce>, ) -> Option<Self>
Source§impl<E: UserEvent> WorkerEvent for SupervisionEvent<E>
impl<E: UserEvent> WorkerEvent for SupervisionEvent<E>
fn worker_stopped(event: WorkerStopped<E::Addr>) -> Option<Self>
impl<E: Eq + UserEvent> Eq for SupervisionEvent<E>
impl<E: UserEvent> StructuralPartialEq for SupervisionEvent<E>
Auto Trait Implementations§
impl<E> Freeze for SupervisionEvent<E>
impl<E> RefUnwindSafe for SupervisionEvent<E>where
E: RefUnwindSafe,
<<E as UserEvent>::Addr as Address>::Nonce: RefUnwindSafe,
<E as UserEvent>::Addr: RefUnwindSafe,
impl<E> Send for SupervisionEvent<E>
impl<E> Sync for SupervisionEvent<E>
impl<E> Unpin for SupervisionEvent<E>
impl<E> UnsafeUnpin for SupervisionEvent<E>where
E: UnsafeUnpin,
<<E as UserEvent>::Addr as Address>::Nonce: UnsafeUnpin,
<E as UserEvent>::Addr: UnsafeUnpin,
impl<E> UnwindSafe for SupervisionEvent<E>where
E: UnwindSafe,
<<E as UserEvent>::Addr as Address>::Nonce: UnwindSafe,
<E as UserEvent>::Addr: 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