[][src]Struct coerce_rt::actor::message::ActorMessage

pub struct ActorMessage<A: Actor, M: Message> where
    A: Handler<M> + Send + Sync,
    M: Send + Sync,
    M::Result: 'static + Send + Sync
{ /* fields omitted */ }

Methods

impl<A: 'static + Actor, M: 'static + Message> ActorMessage<A, M> where
    A: Handler<M> + Send + Sync,
    M: Send + Sync,
    M::Result: Send + Sync
[src]

pub fn new(msg: M, sender: Option<Sender<M::Result>>) -> ActorMessage<A, M>[src]

pub async fn handle_msg<'_, '_, '_>(
    &'_ mut self,
    actor: &'_ mut A,
    ctx: &'_ mut ActorHandlerContext
)
[src]

Trait Implementations

impl<A: 'static + Actor, M: 'static + Message> ActorMessageHandler<A> for ActorMessage<A, M> where
    A: Handler<M> + Send + Sync,
    M: Send + Sync,
    M::Result: Send + Sync
[src]

Auto Trait Implementations

impl<A, M> !RefUnwindSafe for ActorMessage<A, M>

impl<A, M> Send for ActorMessage<A, M>

impl<A, M> Sync for ActorMessage<A, M>

impl<A, M> Unpin for ActorMessage<A, M> where
    A: Unpin,
    M: Unpin

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