pub struct Envelope {
pub message_id: String,
pub to: String,
pub event: Event,
pub correlation: Option<String>,
pub timer: Option<String>,
}Expand description
A message on its way to an actor.
Fields§
§message_id: StringThe deduplication key: stable across redeliveries and retries.
to: StringThe receiver’s address.
event: EventThe event, with origin and origin type set by the sender’s transport.
correlation: Option<String>A request’s correlation id, or the correlation id a reply answers.
timer: Option<String>The timer whose firing this message is.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Envelope
impl<'de> Deserialize<'de> for Envelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Envelope
Auto Trait Implementations§
impl Forget for Envelope
impl Freeze for Envelope
impl Move for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more