pub struct WebSocketDeliveredMessage { /* private fields */ }Expand description
A message the server delivered on this WebSocket subscription.
Mirrors the TCP DeliveredMessage surface; the
TCP type keeps its fields private, so the WebSocket sibling carries its own
identical shape.
Implementations§
Source§impl WebSocketDeliveredMessage
impl WebSocketDeliveredMessage
Sourcepub const fn delivery_seq(&self) -> u64
pub const fn delivery_seq(&self) -> u64
The per-subscription monotonic delivery sequence (starts at 1).
Sourcepub const fn schema_id(&self) -> SchemaId
pub const fn schema_id(&self) -> SchemaId
The schema id the server selected for this subscription’s stream.
Sourcepub fn into_payload(self) -> Vec<u8> ⓘ
pub fn into_payload(self) -> Vec<u8> ⓘ
Consumes the message, returning the owned payload bytes.
Sourcepub const fn message(&self) -> Option<DeliveredId>
pub const fn message(&self) -> Option<DeliveredId>
The server’s id for this message and the boot it was drawn in, when the
server sent it (protocol 1.2, Fable 4c). None from an older server,
and for a durable message replayed from the store.
Sourcepub fn reply_parent(&self) -> Option<MessageId>
pub fn reply_parent(&self) -> Option<MessageId>
The causal parent a reply to this message names, <boot>:<id>, or
None when the message carried no id: never an invented one.
Trait Implementations§
Source§impl Clone for WebSocketDeliveredMessage
impl Clone for WebSocketDeliveredMessage
Source§impl Debug for WebSocketDeliveredMessage
impl Debug for WebSocketDeliveredMessage
impl Eq for WebSocketDeliveredMessage
Source§impl From<WebSocketDeliveredMessage> for DeliveredMessage
One delivered message, whichever transport carried it: the WebSocket
sibling’s fields are the TCP message’s (AGT-006 R2).
impl From<WebSocketDeliveredMessage> for DeliveredMessage
One delivered message, whichever transport carried it: the WebSocket sibling’s fields are the TCP message’s (AGT-006 R2).