[][src]Struct messages::address::Address

pub struct Address<Input> { /* fields omitted */ }

Address is an entity capable of sending messages. It represents a sender side of communication, and the receiver side is represented using Mailbox.

Implementations

impl<Input> Address<Input>[src]

pub async fn send<'_>(&'_ mut self, message: Input) -> Result<(), SendError>[src]

Sends a message to the corresponding Mailbox.

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

Sends a stop request to the corresponding Mailbox.

Trait Implementations

impl<Input> Clone for Address<Input>[src]

impl<Input: Debug> Debug for Address<Input>[src]

Auto Trait Implementations

impl<Input> !RefUnwindSafe for Address<Input>

impl<Input> Send for Address<Input> where
    Input: Send

impl<Input> Sync for Address<Input> where
    Input: Send

impl<Input> Unpin for Address<Input>

impl<Input> !UnwindSafe for Address<Input>

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.