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).
Source§fn from(message: WebSocketDeliveredMessage) -> Self
fn from(message: WebSocketDeliveredMessage) -> Self
impl StructuralPartialEq for WebSocketDeliveredMessage
Auto Trait Implementations§
impl Freeze for WebSocketDeliveredMessage
impl RefUnwindSafe for WebSocketDeliveredMessage
impl Send for WebSocketDeliveredMessage
impl Sync for WebSocketDeliveredMessage
impl Unpin for WebSocketDeliveredMessage
impl UnsafeUnpin for WebSocketDeliveredMessage
impl UnwindSafe for WebSocketDeliveredMessage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.