Struct riker::protocol::Envelope[][src]

pub struct Envelope<T: Message> {
    pub sender: Option<ActorRef<T>>,
    pub msg: ActorMsg<T>,
}

Wraps message and sender

Fields

Trait Implementations

impl<T: Debug + Message> Debug for Envelope<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone + Message> Clone for Envelope<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Message> Send for Envelope<T>
[src]

Auto Trait Implementations

impl<T> Sync for Envelope<T> where
    T: Sync