pub struct Envelope {
pub stamp: Timestamp,
pub seq: u64,
}Expand description
The sender’s timestamp and sequence number (ridl §3.1). The runtime stamps it from its clock, and no relay changes it.
Before a signal’s first publication, its envelope has seq 0 and the time
at which the channel was created. On a call, seq is unique for each
caller, not for each channel.
Fields§
§stamp: TimestampWhen the sender published, raised or called the instance (ridl §3.1).
seq: u64The sender’s sequence number. On an event channel, a gap is a loss (ridl §3.1).
Trait Implementations§
impl Copy for Envelope
impl Eq for Envelope
impl StructuralPartialEq for Envelope
Auto Trait Implementations§
impl Freeze 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