[][src]Trait riker::actor::TryTell

pub trait TryTell {
type Msg: Message;
    fn try_tell<T>(
        &self,
        msg: T,
        sender: Option<ActorRef<Self::Msg>>
    ) -> Result<(), TryMsgError<T>>
    where
        T: Into<ActorMsg<Self::Msg>>
; }

Implement to provide possible message routing to actors, e.g. Option<ActorRef>

Associated Types

type Msg: Message

Loading content...

Required methods

fn try_tell<T>(
    &self,
    msg: T,
    sender: Option<ActorRef<Self::Msg>>
) -> Result<(), TryMsgError<T>> where
    T: Into<ActorMsg<Self::Msg>>, 

Loading content...

Implementations on Foreign Types

impl<Msg: Message> TryTell for Option<ActorRef<Msg>>[src]

type Msg = Msg

Loading content...

Implementors

Loading content...