pub enum DeliveryMode {
Live {
message_id: String,
},
Persisted {
message_id: String,
},
}Expand description
Result of a send_live_message call.
The WebSocket path waits up to 10 seconds for a sendMessageAck
event from the server. If the ack arrives, the message was
relayed to any live subscribers and delivery is Live. If the ack
times out, the client falls back to the HTTP POST /sendMessage
endpoint, which persists the message durably — the message IS
stored, but no live push was confirmed (recipients must poll or
be subscribed). Use Live when your protocol requires the peer
to have received the message in real time.
Variants§
Live
Delivered via WebSocket — server acked within the 10s window.
Persisted
Persisted via HTTP fallback — WS ack timed out. Recipient must poll or already be subscribed to receive it.
Implementations§
Source§impl DeliveryMode
impl DeliveryMode
Trait Implementations§
Source§impl Clone for DeliveryMode
impl Clone for DeliveryMode
Source§fn clone(&self) -> DeliveryMode
fn clone(&self) -> DeliveryMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeliveryMode
impl RefUnwindSafe for DeliveryMode
impl Send for DeliveryMode
impl Sync for DeliveryMode
impl Unpin for DeliveryMode
impl UnsafeUnpin for DeliveryMode
impl UnwindSafe for DeliveryMode
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