pub struct OutgoingSeq { /* private fields */ }Expand description
Tracks outgoing sequence numbers for a single direction of a WebSocket connection. Assigns monotonically increasing numbers starting at 1.
Implementations§
Source§impl OutgoingSeq
impl OutgoingSeq
Sourcepub fn wrap_service(
&mut self,
message: ServiceMessage,
trace_context: TraceContext,
) -> ServiceEnvelope
pub fn wrap_service( &mut self, message: ServiceMessage, trace_context: TraceContext, ) -> ServiceEnvelope
Wrap a ServiceMessage in a ServiceEnvelope, assigning the next
sequence number, stamping CURRENT_PROTOCOL_VERSION, and attaching
the given TraceContext for distributed tracing.
Sourcepub fn wrap_service_paginated(
&mut self,
message: ServiceMessage,
trace_context: TraceContext,
pagination: Option<ReportPagination>,
) -> ServiceEnvelope
pub fn wrap_service_paginated( &mut self, message: ServiceMessage, trace_context: TraceContext, pagination: Option<ReportPagination>, ) -> ServiceEnvelope
Wrap a ServiceMessage in a ServiceEnvelope with optional
pagination metadata.
Sourcepub fn wrap_controller(
&mut self,
message: ControllerMessage,
trace_context: TraceContext,
) -> ControllerEnvelope
pub fn wrap_controller( &mut self, message: ControllerMessage, trace_context: TraceContext, ) -> ControllerEnvelope
Wrap a ControllerMessage in a ControllerEnvelope, assigning the
next sequence number, stamping CURRENT_PROTOCOL_VERSION, and attaching
the given TraceContext for distributed tracing.
Trait Implementations§
Source§impl Debug for OutgoingSeq
impl Debug for OutgoingSeq
Auto Trait Implementations§
impl Freeze for OutgoingSeq
impl RefUnwindSafe for OutgoingSeq
impl Send for OutgoingSeq
impl Sync for OutgoingSeq
impl Unpin for OutgoingSeq
impl UnsafeUnpin for OutgoingSeq
impl UnwindSafe for OutgoingSeq
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