pub enum WsIncoming {
Data {
guid: String,
data: Value,
},
Status {
guid: Option<String>,
code: u16,
message: String,
},
Reconnected,
Unknown(String),
}Expand description
A frame of the data channel, parsed.
Variants§
Data
A data frame of a subscription: {"data": ..., "guid": ...}.
Fields
Status
A status frame: {"requestGuid": ..., "httpCode": ..., "message": ...}. 200 confirms a request, 400 or 401
refuses it (the broker closes the connection after a 401).
Fields
Reconnected
The session connected (or reconnected): data frames of the restored subscriptions follow.
Unknown(String)
A frame that is neither of the above.
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