[][src]Struct lwactors::ActorSender

pub struct ActorSender<A, R, E>(_);

Implementations

impl<A, R, E> ActorSender<A, R, E> where
    A: Send + 'static,
    R: Send + 'static,
    E: Send + From<ActorError> + 'static, 
[src]

pub fn invoke(&self, action: A) -> impl Future<Output = ActResult<R, E>>[src]

Invokes a specific action on the actor. Returns a future that completes when the actor has performed the action.

Specifically not an async function to allow it to be used correctly in a fire-and-forget manner, although this is not advised.

Trait Implementations

impl<A, R, E> Clone for ActorSender<A, R, E>[src]

impl<A: Debug, R: Debug, E: Debug> Debug for ActorSender<A, R, E>[src]

Auto Trait Implementations

impl<A, R, E> !RefUnwindSafe for ActorSender<A, R, E>[src]

impl<A, R, E> Send for ActorSender<A, R, E> where
    A: Send,
    E: Send,
    R: Send
[src]

impl<A, R, E> Sync for ActorSender<A, R, E> where
    A: Send,
    E: Send,
    R: Send
[src]

impl<A, R, E> Unpin for ActorSender<A, R, E>[src]

impl<A, R, E> !UnwindSafe for ActorSender<A, R, E>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.