[][src]Struct meio::Wrapper

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

Basic interface that just wraps Address of Actor instance.

Methods from Deref<Target = Address<A>>

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: Clone + Actor> Clone for Wrapper<A>[src]

impl<A: Debug + Actor> Debug for Wrapper<A>[src]

impl<A: Actor> Deref for Wrapper<A>[src]

type Target = Address<A>

The resulting type after dereferencing.

impl<A: Actor> DerefMut for Wrapper<A>[src]

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

impl<A: Actor> Interface<A> for Wrapper<A>[src]

Auto Trait Implementations

impl<A> !RefUnwindSafe for Wrapper<A>

impl<A> Send for Wrapper<A>

impl<A> Sync for Wrapper<A>

impl<A> Unpin for Wrapper<A>

impl<A> !UnwindSafe for Wrapper<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>,