Skip to main content

Event

Struct Event 

Source
pub struct Event<R, K> {
    pub kind: K,
    /* private fields */
}

Fields§

§kind: K

Implementations§

Source§

impl<R, K> Event<R, K>

Source

pub fn convert<K1>(self) -> Result<Event<R, K1>, Self>
where Event<R, K1>: TryFrom<Event<R, K>, Error = Self>,

Source

pub fn expect<K1>(self) -> Event<R, K1>
where Event<R, K1>: TryFrom<Event<R, K>, Error = Self>, K: Debug,

Source§

impl<R> Event<R, Spawn<R>>

Source

pub fn take_runnable(self) -> (R, Event<R, Spawn<()>>)

Source§

impl<R> Event<R, Tell>

Source

pub fn take_envelope(&mut self) -> Envelope

Source§

impl<R> Event<R, Start<R>>

Source

pub fn take_runnable(self) -> (R, Event<R, Start<()>>)

Source§

impl<R> Event<R, ForkRun>

Source

pub fn resolve(self) -> Event<R, PendingTask>

Source§

impl<R> Event<R, PendingTask>

Source

pub async fn run(self) -> Result<(), RuntimeError>

Source§

impl<R> Event<R, Quit>

Source

pub async fn stop_tasks(self) -> Result<(), RuntimeError>

Source§

impl<R> Event<R, MainActorOutcome>

Trait Implementations§

Source§

impl<R, K> Debug for Event<R, K>
where K: Debug,

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<R, E> Deref for Event<R, E>

Source§

type Target = E

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<R, K, O> EventResolve<O> for Event<R, K>
where K: Into<Sender<O>>,

Source§

fn resolve(self, outcome: O)

Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, ActorTaskOutcome>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Bind<NetAddress>>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Exit>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Fork<R>>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, ForkRun>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, ForkTaskOutcome>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, InitDone>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Kill>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Link>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, MainActorOutcome>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Query<R>>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Quit>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Recv>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, RecvClose>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, SetTrapExit>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Spawn<R>>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Start<R>>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Tell>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Unlink>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Unwatch>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R> TryFrom<Event<R, EventKind<R>>> for Event<R, Watch>

Source§

type Error = Event<R, EventKind<R>>

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

fn try_from(value: Event<R, EventKind<R>>) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<R, K> Freeze for Event<R, K>
where K: Freeze,

§

impl<R, K> !RefUnwindSafe for Event<R, K>

§

impl<R, K> Send for Event<R, K>
where K: Send, R: Send,

§

impl<R, K> Sync for Event<R, K>
where K: Sync, R: Send,

§

impl<R, K> Unpin for Event<R, K>
where K: Unpin,

§

impl<R, K> !UnwindSafe for Event<R, K>

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, O, E> EventResolveResult<O, E> for T
where T: EventResolve<Result<O, E>>,

Source§

fn resolve_ok(self, outcome_ok: O)

Source§

fn resolve_err(self, outcome_err: E)

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more