[][src]Struct seal_rs::actors::envelope::Envelope

pub struct Envelope {
    pub message: Box<dyn Any + Send + 'static>,
    pub sender: Option<ActorRef>,
    pub receiver: ActorRef,
    pub system: TSafe<ActorSystem>,
}

Fields

message: Box<dyn Any + Send + 'static>

Boxed message

sender: Option<ActorRef>

Who send this message

receiver: ActorRef

Who must receive this message

system: TSafe<ActorSystem>

Link to the actor system

Methods

impl Envelope[src]

pub fn new(
    message: Box<dyn Any + Send + 'static>,
    sender: Option<ActorRef>,
    receiver: ActorRef,
    system: TSafe<ActorSystem>
) -> Envelope
[src]

Auto Trait Implementations

impl Send for Envelope

impl !Sync for Envelope

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]