pub enum WsIncoming {
Connected,
Ack {
op: String,
req_id: Option<String>,
success: bool,
message: String,
},
Data {
topic: String,
kind: DataKind,
ts: i64,
cts: i64,
data: Value,
},
Pong,
Unknown(String),
}Expand description
A frame from the stream.
Variants§
Connected
A connection was made (and, for the private stream, logged in). Sent by the session itself, before the data of the restored subscriptions.
Ack
The answer to a request.
Fields
Data
Data of a topic.
Fields
Pong
The answer to a heartbeat.
Unknown(String)
Something else: kept as text.
Trait Implementations§
Source§impl Clone for WsIncoming
impl Clone for WsIncoming
Source§fn clone(&self) -> WsIncoming
fn clone(&self) -> WsIncoming
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 moreSource§impl Debug for WsIncoming
impl Debug for WsIncoming
Source§impl PartialEq for WsIncoming
impl PartialEq for WsIncoming
Source§fn eq(&self, other: &WsIncoming) -> bool
fn eq(&self, other: &WsIncoming) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WsIncoming
Auto Trait Implementations§
impl Freeze for WsIncoming
impl RefUnwindSafe for WsIncoming
impl Send for WsIncoming
impl Sync for WsIncoming
impl Unpin for WsIncoming
impl UnsafeUnpin for WsIncoming
impl UnwindSafe for WsIncoming
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