[][src]Struct meio::Address

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

Address to send messages to Actor.

Can be compared each other to identify senders to the same Actor.

Methods

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

pub fn terminate(&mut self)[src]

Terminate the Actor.

pub async fn join<'_>(&'_ mut self) -> Result<(), Error>[src]

Wait for termination of the Actor.

pub async fn action<'_, I>(&'_ mut self, input: I) -> Result<(), Error> where
    A: ActionHandler<I>,
    I: Action
[src]

Send Action message to an Actor.

pub async fn interaction<'_, I>(
    &'_ mut self,
    input: I
) -> Result<I::Output, Error> where
    A: InteractionHandler<I>,
    I: Interaction
[src]

Send Interaction message to an Actor and wait for the response.

pub async fn terminate_with_timeout<'_>(&'_ mut self)[src]

Terminate actor and wait a timeout for termination.

Trait Implementations

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

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

impl<A: Actor> Eq for Address<A>[src]

impl<A: Actor> From<Address<A>> for Wrapper<A>[src]

impl<A: Actor> Hash for Address<A>[src]

impl<A: Actor> PartialEq<Address<A>> for Address<A>[src]

Auto Trait Implementations

impl<A> !RefUnwindSafe for Address<A>

impl<A> Send for Address<A>

impl<A> Sync for Address<A>

impl<A> Unpin for Address<A>

impl<A> !UnwindSafe for Address<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.

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