[][src]Struct quix::process::PidRecipient

pub struct PidRecipient<M> where
    M: Message + Send,
    M::Result: Send
{ /* fields omitted */ }

Can be used to send messages across network without knowing the type of the actor receiving them

Implementations

impl<M> PidRecipient<M> where
    M: Message + Send,
    M::Result: Send
[src]

pub fn from_id(id: Uuid) -> Self[src]

Create a recipient from just an id

impl<M> PidRecipient<M> where
    M: Message + Service + Send,
    M::Result: Send
[src]

pub fn send(&self, m: M) -> PidRecipientRequest<M>

Notable traits for PidRecipientRequest<M>

impl<M: Message> Future for PidRecipientRequest<M> where
    M: Message + Service + Unpin + Send,
    M::Result: Send
type Output = Result<M::Result, DispatchError>;
[src]

pub fn do_send(&self, m: M) -> Result<(), SendError<M>>[src]

Trait Implementations

impl<M> Clone for PidRecipient<M> where
    M: Message + Send,
    M::Result: Send
[src]

Auto Trait Implementations

impl<M> !RefUnwindSafe for PidRecipient<M>

impl<M> Send for PidRecipient<M>

impl<M> Sync for PidRecipient<M>

impl<M> Unpin for PidRecipient<M>

impl<M> !UnwindSafe for PidRecipient<M>

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>,