[][src]Struct meio::address::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.

Implementations

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

pub fn attach<S>(&mut self, stream: S) -> JoinHandle<()> where
    A: ActionHandler<S::Item>,
    S: Stream + Send + Unpin + 'static,
    S::Item: Action
[src]

Attaches a Stream of event to an Actor.

pub fn action_recipient<I>(&self) -> ActionRecipient<I> where
    A: ActionHandler<I>,
    I: Action
[src]

Generates ActionRecipient.

pub fn interaction_recipient<I>(&self) -> InteractionRecipient<I> where
    A: InteractionHandler<I>,
    I: Interaction
[src]

Generates InteractionRecipient.

pub fn controller(&self) -> Controller[src]

Gives a Controller of that entity.

Methods from Deref<Target = Controller>

pub fn id(&self) -> Id[src]

Returns Id of the controller.

pub fn shutdown(&mut self)[src]

Start shutdown process for the Actor.

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

Waits when the Actor will be terminated.

Trait Implementations

impl<A, I> ActionPerformer<I> for Address<A> where
    A: Actor,
    A: ActionHandler<I>,
    I: Action
[src]

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

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

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

type Target = Controller

The resulting type after dereferencing.

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

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

impl<A, I> From<Address<A>> for ActionRecipient<I> where
    A: Actor,
    A: ActionHandler<I>,
    I: Action
[src]

impl<A, I> From<Address<A>> for InteractionRecipient<I> where
    A: Actor,
    A: InteractionHandler<I>,
    I: Interaction
[src]

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

impl<A, I> InteractionPerformer<I> for Address<A> where
    A: Actor,
    A: InteractionHandler<I>,
    I: Interaction
[src]

impl<A: Actor> Into<Controller> for Address<A>[src]

impl<T, A> Link<T> for Address<A> where
    T: From<Address<A>>,
    A: Actor
[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>,