[][src]Struct improv::Addr

pub struct Addr<A: Actor> { /* fields omitted */ }

Implementations

impl<A: Actor> Addr<A>[src]

pub fn tell<M: Message<Response = ()>>(
    &self,
    msg: M
) -> Result<(), Disconnected> where
    A: Receive<M>, 
[src]

pub fn ask<M: Message>(
    &self,
    msg: M
) -> impl Future<Output = Result<<M as Message>::Response, Disconnected>> + 'static where
    A: Receive<M>, 
[src]

pub fn into_teller<M: Message<Response = ()>>(self) -> Teller<M> where
    A: Receive<M>, 
[src]

pub fn into_asker<M: Message>(self) -> Asker<M> where
    A: Receive<M>, 
[src]

Trait Implementations

impl<A: Actor> Clone for Addr<A>[src]

impl<A: Actor> Debug for Addr<A>[src]

Auto Trait Implementations

impl<A> !RefUnwindSafe for Addr<A>

impl<A> Send for Addr<A>

impl<A> Sync for Addr<A>

impl<A> Unpin for Addr<A>

impl<A> !UnwindSafe for Addr<A>

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.