Skip to main content

ProxyEvent

Enum ProxyEvent 

Source
pub enum ProxyEvent<E: UserEvent> {
    Inner(E),
    ChildStopped(ChildStopped<E::Addr>),
    CreationResolved(CreationResolved<<E::Addr as Address>::Nonce>),
}

Variants§

§

Inner(E)

§

ChildStopped(ChildStopped<E::Addr>)

§

CreationResolved(CreationResolved<<E::Addr as Address>::Nonce>)

Trait Implementations§

Source§

impl<E: UserEvent> ChildEvent for ProxyEvent<E>

Source§

impl<E: Clone + UserEvent> Clone for ProxyEvent<E>
where E::Addr: Clone,

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<E: UserEvent> CreationEvent for ProxyEvent<E>

Source§

impl<E: Eq + UserEvent> Eq for ProxyEvent<E>
where E::Addr: Eq,

Source§

impl<E: UserEvent> EventInput<ChildStopped<<E as UserEvent>::Addr>> for ProxyEvent<E>

Source§

fn inject(event: ChildStopped<E::Addr>) -> Self

Source§

impl<E: UserEvent> EventInput<CreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for ProxyEvent<E>

Source§

fn inject(event: CreationResolved<<E::Addr as Address>::Nonce>) -> Self

Source§

impl<E> EventInput<PeerStopped<<E as UserEvent>::Addr>> for ProxyEvent<E>

Source§

fn inject(event: PeerStopped<E::Addr>) -> Self

Source§

impl<E> EventInput<ShutdownRequested> for ProxyEvent<E>

Source§

impl<E> EventInput<TimerElapsed> for ProxyEvent<E>

Source§

fn inject(event: TimerElapsed) -> Self

Source§

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>

Source§

fn inject(event: WorkerStopped<E::Addr>) -> Self

Source§

impl<E: PartialEq + UserEvent> PartialEq for ProxyEvent<E>
where E::Addr: PartialEq,

Source§

fn eq(&self, other: &ProxyEvent<E>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<E: PeerEvent> PeerEvent for ProxyEvent<E>

Source§

impl<E: ShutdownEvent> ShutdownEvent for ProxyEvent<E>

Source§

impl<E: PartialEq + UserEvent> StructuralPartialEq for ProxyEvent<E>
where E::Addr: PartialEq,

Source§

impl<E: TimeEvent> TimeEvent for ProxyEvent<E>

Source§

impl<E: UserEvent> UserEvent for ProxyEvent<E>

Source§

type Addr = <E as UserEvent>::Addr

Source§

type Message = <E as UserEvent>::Message

Source§

fn user(from: Self::Addr, message: Self::Message) -> Self

Source§

fn into_user(self) -> Result<User<Self::Addr, Self::Message>, Self>

Errors Read more
Source§

impl<E: WorkerCreationEvent> WorkerCreationEvent for ProxyEvent<E>

Source§

impl<E: WorkerEvent> WorkerEvent for ProxyEvent<E>

Auto Trait Implementations§

§

impl<E> Freeze for ProxyEvent<E>
where E: Freeze, <<E as UserEvent>::Addr as Address>::Nonce: Freeze, <E as UserEvent>::Addr: Freeze,

§

impl<E> RefUnwindSafe for ProxyEvent<E>

§

impl<E> Send for ProxyEvent<E>
where E: Send, <<E as UserEvent>::Addr as Address>::Nonce: Send, <E as UserEvent>::Addr: Send,

§

impl<E> Sync for ProxyEvent<E>
where E: Sync, <<E as UserEvent>::Addr as Address>::Nonce: Sync, <E as UserEvent>::Addr: Sync,

§

impl<E> Unpin for ProxyEvent<E>
where E: Unpin, <<E as UserEvent>::Addr as Address>::Nonce: Unpin, <E as UserEvent>::Addr: Unpin,

§

impl<E> UnsafeUnpin for ProxyEvent<E>

§

impl<E> UnwindSafe for ProxyEvent<E>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.