pub enum WebSocketEvent {
Market(MarketUpdate),
StreamQuote(Box<StreamQuote>),
Heartbeat(Heartbeat),
Control(ControlEvent),
Pong(Vec<u8>),
Closed(CloseInfo),
}Expand description
An incoming application, pong, or close event.
Variants§
Market(MarketUpdate)
A validated trade, quote, or trade-break update.
StreamQuote(Box<StreamQuote>)
A current market stream’s validated quote snapshot.
Heartbeat(Heartbeat)
The current server’s required timestamped heartbeat.
Control(ControlEvent)
A control message; server error controls instead return an error.
Pong(Vec<u8>)
The peer’s pong payload.
Closed(CloseInfo)
A cleanly closed connection.
Trait Implementations§
Source§impl Clone for WebSocketEvent
impl Clone for WebSocketEvent
Source§impl Debug for WebSocketEvent
impl Debug for WebSocketEvent
Source§impl PartialEq for WebSocketEvent
impl PartialEq for WebSocketEvent
impl StructuralPartialEq for WebSocketEvent
Auto Trait Implementations§
impl Freeze for WebSocketEvent
impl RefUnwindSafe for WebSocketEvent
impl Send for WebSocketEvent
impl Sync for WebSocketEvent
impl Unpin for WebSocketEvent
impl UnsafeUnpin for WebSocketEvent
impl UnwindSafe for WebSocketEvent
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