pub enum WatchEvent<E, A: Address> {
Inner(E),
PeerStopped(PeerStopped<A>),
}Variants§
Inner(E)
PeerStopped(PeerStopped<A>)
Trait Implementations§
Source§impl<E: ChildEvent<A>, A: Address> ChildEvent<A> for WatchEvent<E, A>
impl<E: ChildEvent<A>, A: Address> ChildEvent<A> for WatchEvent<E, A>
fn child_stopped(event: ChildStopped<A>) -> Option<Self>
Source§impl<E: Clone, A: Clone + Address> Clone for WatchEvent<E, A>
impl<E: Clone, A: Clone + Address> Clone for WatchEvent<E, A>
Source§fn clone(&self) -> WatchEvent<E, A>
fn clone(&self) -> WatchEvent<E, A>
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 moreimpl<E: Eq, A: Eq + Address> Eq for WatchEvent<E, A>
Source§impl<E, A: Address> PeerEvent<A> for WatchEvent<E, A>
impl<E, A: Address> PeerEvent<A> for WatchEvent<E, A>
fn peer_stopped(event: PeerStopped<A>) -> Option<Self>
impl<E: PartialEq, A: PartialEq + Address> StructuralPartialEq for WatchEvent<E, A>
Source§impl<E: TimeEvent, A: Address> TimeEvent for WatchEvent<E, A>
impl<E: TimeEvent, A: Address> TimeEvent for WatchEvent<E, A>
fn time_reached(event: TimeReached) -> Option<Self>
Source§impl<E: WorkerEvent<A>, A: Address> WorkerEvent<A> for WatchEvent<E, A>
impl<E: WorkerEvent<A>, A: Address> WorkerEvent<A> for WatchEvent<E, A>
fn worker_stopped(event: WorkerStopped<A>) -> Option<Self>
Auto Trait Implementations§
impl<E, A> Freeze for WatchEvent<E, A>
impl<E, A> RefUnwindSafe for WatchEvent<E, A>where
E: RefUnwindSafe,
A: RefUnwindSafe,
impl<E, A> Send for WatchEvent<E, A>
impl<E, A> Sync for WatchEvent<E, A>
impl<E, A> Unpin for WatchEvent<E, A>
impl<E, A> UnsafeUnpin for WatchEvent<E, A>where
E: UnsafeUnpin,
A: UnsafeUnpin,
impl<E, A> UnwindSafe for WatchEvent<E, A>where
E: UnwindSafe,
A: 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