pub enum WatchEvent<E: UserEvent> {
Inner(E),
PeerStopped(PeerStopped<E::Addr>),
}Variants§
Inner(E)
PeerStopped(PeerStopped<E::Addr>)
Trait Implementations§
Source§impl<E: ChildEvent> ChildEvent for WatchEvent<E>
impl<E: ChildEvent> ChildEvent for WatchEvent<E>
fn child_stopped(event: ChildStopped<E::Addr>) -> Option<Self>
Source§impl<E: Clone + UserEvent> Clone for WatchEvent<E>
impl<E: Clone + UserEvent> Clone for WatchEvent<E>
Source§fn clone(&self) -> WatchEvent<E>
fn clone(&self) -> WatchEvent<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: CreationEvent> CreationEvent for WatchEvent<E>
impl<E: CreationEvent> CreationEvent for WatchEvent<E>
fn creation_resolved( event: CreationResolved<<E::Addr as Address>::Nonce>, ) -> Option<Self>
Source§impl<E> EventInput<ChildStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
impl<E> EventInput<ChildStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
fn inject(event: ChildStopped<E::Addr>) -> Self
Source§impl<E> EventInput<CreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for WatchEvent<E>
impl<E> EventInput<CreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for WatchEvent<E>
Source§impl<E: UserEvent> EventInput<PeerStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
impl<E: UserEvent> EventInput<PeerStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
fn inject(event: PeerStopped<E::Addr>) -> Self
Source§impl<E> EventInput<ShutdownRequested> for WatchEvent<E>
impl<E> EventInput<ShutdownRequested> for WatchEvent<E>
fn inject(event: ShutdownRequested) -> Self
Source§impl<E> EventInput<TimerElapsed> for WatchEvent<E>
impl<E> EventInput<TimerElapsed> for WatchEvent<E>
fn inject(event: TimerElapsed) -> Self
Source§impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for WatchEvent<E>
impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for WatchEvent<E>
Source§impl<E> EventInput<WorkerStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
impl<E> EventInput<WorkerStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
fn inject(event: WorkerStopped<E::Addr>) -> Self
Source§impl<E: UserEvent> PeerEvent for WatchEvent<E>
impl<E: UserEvent> PeerEvent for WatchEvent<E>
fn peer_stopped(event: PeerStopped<E::Addr>) -> Option<Self>
Source§impl<E: ShutdownEvent> ShutdownEvent for WatchEvent<E>
impl<E: ShutdownEvent> ShutdownEvent for WatchEvent<E>
fn shutdown_requested(event: ShutdownRequested) -> Option<Self>
Source§impl<E: TimeEvent> TimeEvent for WatchEvent<E>
impl<E: TimeEvent> TimeEvent for WatchEvent<E>
fn time_reached(event: TimerElapsed) -> Option<Self>
Source§impl<E: UserEvent> UserEvent for WatchEvent<E>
impl<E: UserEvent> UserEvent for WatchEvent<E>
Source§impl<E: WorkerCreationEvent> WorkerCreationEvent for WatchEvent<E>
impl<E: WorkerCreationEvent> WorkerCreationEvent for WatchEvent<E>
fn worker_creation_resolved( event: WorkerCreationResolved<<E::Addr as Address>::Nonce>, ) -> Option<Self>
Source§impl<E: WorkerEvent> WorkerEvent for WatchEvent<E>
impl<E: WorkerEvent> WorkerEvent for WatchEvent<E>
fn worker_stopped(event: WorkerStopped<E::Addr>) -> Option<Self>
impl<E: Eq + UserEvent> Eq for WatchEvent<E>
impl<E: UserEvent> StructuralPartialEq for WatchEvent<E>
Auto Trait Implementations§
impl<E> Freeze for WatchEvent<E>
impl<E> RefUnwindSafe for WatchEvent<E>
impl<E> Send for WatchEvent<E>
impl<E> Sync for WatchEvent<E>
impl<E> Unpin for WatchEvent<E>
impl<E> UnsafeUnpin for WatchEvent<E>
impl<E> UnwindSafe for WatchEvent<E>
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