pub struct RuntimeHeaders {
pub message_id: MessageId,
pub timestamp: Instant,
}Expand description
Read-only headers auto-generated by the runtime. Interceptors can read these but cannot modify or remove them.
Clone semantics: Cloning preserves the original message_id and
timestamp. This is intentional — cloned headers refer to the same
logical message (e.g., when forwarding or replicating an envelope).
Use RuntimeHeaders::new() to create headers for a genuinely new message.
Fields§
§message_id: MessageIdUnique message ID — auto-assigned by the runtime for every message.
timestamp: InstantWhen the runtime received/created this message.
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeHeaders
impl Clone for RuntimeHeaders
Source§fn clone(&self) -> RuntimeHeaders
fn clone(&self) -> RuntimeHeaders
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeHeaders
impl Debug for RuntimeHeaders
Auto Trait Implementations§
impl Freeze for RuntimeHeaders
impl RefUnwindSafe for RuntimeHeaders
impl Send for RuntimeHeaders
impl Sync for RuntimeHeaders
impl Unpin for RuntimeHeaders
impl UnsafeUnpin for RuntimeHeaders
impl UnwindSafe for RuntimeHeaders
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