pub enum TimedEvent<E> {
Behavior(E),
Elapsed(TimerElapsed),
}Variants§
Behavior(E)
Elapsed(TimerElapsed)
Trait Implementations§
Source§impl<E: Clone> Clone for TimedEvent<E>
impl<E: Clone> Clone for TimedEvent<E>
Source§fn clone(&self) -> TimedEvent<E>
fn clone(&self) -> TimedEvent<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 TimedEvent<E>
impl<E: Debug> Debug for TimedEvent<E>
impl<E: Eq> Eq for TimedEvent<E>
Source§impl<E> EventInput<ChildStopped<<E as UserEvent>::Addr>> for TimedEvent<E>
impl<E> EventInput<ChildStopped<<E as UserEvent>::Addr>> for TimedEvent<E>
fn inject(event: ChildStopped<E::Addr>) -> Self
Source§impl<E> EventInput<CreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for TimedEvent<E>
impl<E> EventInput<CreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for TimedEvent<E>
Source§impl<E> EventInput<PeerStopped<<E as UserEvent>::Addr>> for TimedEvent<E>
impl<E> EventInput<PeerStopped<<E as UserEvent>::Addr>> for TimedEvent<E>
fn inject(event: PeerStopped<E::Addr>) -> Self
Source§impl<E> EventInput<ShutdownRequested> for TimedEvent<E>
impl<E> EventInput<ShutdownRequested> for TimedEvent<E>
fn inject(event: ShutdownRequested) -> Self
Source§impl<E: UserEvent> EventInput<TimerElapsed> for TimedEvent<E>
impl<E: UserEvent> EventInput<TimerElapsed> for TimedEvent<E>
fn inject(event: TimerElapsed) -> Self
Source§impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for TimedEvent<E>
impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for TimedEvent<E>
Source§impl<E> EventInput<WorkerStopped<<E as UserEvent>::Addr>> for TimedEvent<E>
impl<E> EventInput<WorkerStopped<<E as UserEvent>::Addr>> for TimedEvent<E>
fn inject(event: WorkerStopped<E::Addr>) -> Self
Source§impl<E: PartialEq> PartialEq for TimedEvent<E>
impl<E: PartialEq> PartialEq for TimedEvent<E>
Source§impl<E> RouteInput<ChildStopped<<E as UserEvent>::Addr>> for TimedEvent<E>
impl<E> RouteInput<ChildStopped<<E as UserEvent>::Addr>> for TimedEvent<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 TimedEvent<E>
impl<E> RouteInput<CreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for TimedEvent<E>
Source§impl<E> RouteInput<PeerStopped<<E as UserEvent>::Addr>> for TimedEvent<E>
impl<E> RouteInput<PeerStopped<<E as UserEvent>::Addr>> for TimedEvent<E>
fn route(event: PeerStopped<E::Addr>) -> Result<Self, PeerStopped<E::Addr>>
Source§impl<E> RouteInput<ShutdownRequested> for TimedEvent<E>
impl<E> RouteInput<ShutdownRequested> for TimedEvent<E>
fn route(event: ShutdownRequested) -> Result<Self, ShutdownRequested>
Source§impl<E: UserEvent> RouteInput<TimerElapsed> for TimedEvent<E>
impl<E: UserEvent> RouteInput<TimerElapsed> for TimedEvent<E>
fn route(event: TimerElapsed) -> Result<Self, TimerElapsed>
Source§impl<E> RouteInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for TimedEvent<E>
impl<E> RouteInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for TimedEvent<E>
Source§impl<E> RouteInput<WorkerStopped<<E as UserEvent>::Addr>> for TimedEvent<E>
impl<E> RouteInput<WorkerStopped<<E as UserEvent>::Addr>> for TimedEvent<E>
fn route(event: WorkerStopped<E::Addr>) -> Result<Self, WorkerStopped<E::Addr>>
impl<E: PartialEq> StructuralPartialEq for TimedEvent<E>
Auto Trait Implementations§
impl<E> Freeze for TimedEvent<E>where
E: Freeze,
impl<E> RefUnwindSafe for TimedEvent<E>where
E: RefUnwindSafe,
impl<E> Send for TimedEvent<E>where
E: Send,
impl<E> Sync for TimedEvent<E>where
E: Sync,
impl<E> Unpin for TimedEvent<E>where
E: Unpin,
impl<E> UnsafeUnpin for TimedEvent<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for TimedEvent<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