#[non_exhaustive]pub struct MessageContext {
pub accepted_at_ms: i64,
}Expand description
Kernel-supplied context accompanying an accepted-for-processing message.
accepted_at_ms is the runtime’s acceptance timestamp — the same value
recorded as the log entry’s received_at_ms, so live processing and
replay observe the identical clock. Modes that need a trustworthy time
source (e.g. Handoff’s implicit-accept timeout) must use this, never the
client-supplied Envelope.timestamp_unix_ms, which the sender can forge.
#[non_exhaustive]: construct via MessageContext::new so fields can be
added without breaking mode implementations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.accepted_at_ms: i64Implementations§
Trait Implementations§
Source§impl Clone for MessageContext
impl Clone for MessageContext
Source§fn clone(&self) -> MessageContext
fn clone(&self) -> MessageContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MessageContext
Auto Trait Implementations§
impl Freeze for MessageContext
impl RefUnwindSafe for MessageContext
impl Send for MessageContext
impl Sync for MessageContext
impl Unpin for MessageContext
impl UnsafeUnpin for MessageContext
impl UnwindSafe for MessageContext
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