pub enum WatchEvent<E: UserEvent> {
Behavior(E),
PeerStopped(PeerStopped<E::Addr>),
}Variants§
Behavior(E)
PeerStopped(PeerStopped<E::Addr>)
Trait Implementations§
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 (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 + UserEvent> Eq for WatchEvent<E>
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> RouteInput<ChildStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
impl<E> RouteInput<ChildStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
fn route(event: ChildStopped<E::Addr>) -> Result<Self, ChildStopped<E::Addr>>
Source§impl<E> RouteInput<CreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for WatchEvent<E>
impl<E> RouteInput<CreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for WatchEvent<E>
Source§impl<E: UserEvent> RouteInput<PeerStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
impl<E: UserEvent> RouteInput<PeerStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
fn route(event: PeerStopped<E::Addr>) -> Result<Self, PeerStopped<E::Addr>>
Source§impl<E> RouteInput<ShutdownRequested> for WatchEvent<E>
impl<E> RouteInput<ShutdownRequested> for WatchEvent<E>
fn route(event: ShutdownRequested) -> Result<Self, ShutdownRequested>
Source§impl<E> RouteInput<TimerElapsed> for WatchEvent<E>
impl<E> RouteInput<TimerElapsed> for WatchEvent<E>
fn route(event: TimerElapsed) -> Result<Self, TimerElapsed>
Source§impl<E> RouteInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for WatchEvent<E>
impl<E> RouteInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for WatchEvent<E>
Source§impl<E> RouteInput<WorkerStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
impl<E> RouteInput<WorkerStopped<<E as UserEvent>::Addr>> for WatchEvent<E>
fn route(event: WorkerStopped<E::Addr>) -> Result<Self, WorkerStopped<E::Addr>>
impl<E: PartialEq + 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