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