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

pub struct Envelope {
    pub message: Message,
    pub sender: Option<Box<dyn AbstractActorRef + Send>>,
    pub receiver: Box<dyn AbstractActorRef + Send>,
    pub system: TSafe<dyn AbstractActorSystem + Send>,
}

Fields

message: Message

Boxed message

sender: Option<Box<dyn AbstractActorRef + Send>>

Who send this message

receiver: Box<dyn AbstractActorRef + Send>

Who must receive this message

system: TSafe<dyn AbstractActorSystem + Send>

Link to the actor system

Methods

impl Envelope[src]

pub fn new(
    message: Message,
    sender: Option<Box<dyn AbstractActorRef + Send>>,
    receiver: Box<dyn AbstractActorRef + Send>,
    system: TSafe<dyn AbstractActorSystem + Send>
) -> Envelope
[src]

Auto Trait Implementations

impl !Sync for Envelope

impl Send for Envelope

impl Unpin for Envelope

impl !RefUnwindSafe for Envelope

impl !UnwindSafe 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]