pub struct HandlerCtx {
pub msg_id: MessageId,
pub stream_seq: u64,
pub delivered: u64,
pub subject: String,
pub span: Span,
}Expand description
Context passed to every handler invocation.
Fields§
§msg_id: MessageIdThe message ID associated with this delivery.
stream_seq: u64Stream sequence number for this message.
delivered: u64Number of times this message has been delivered.
subject: StringSubject this message was received on.
span: SpanActive tracing span for attaching handler work.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HandlerCtx
impl !RefUnwindSafe for HandlerCtx
impl Send for HandlerCtx
impl Sync for HandlerCtx
impl Unpin for HandlerCtx
impl UnsafeUnpin for HandlerCtx
impl !UnwindSafe for HandlerCtx
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