Enum longbridge_wscli::WsEvent
source · [−]pub enum WsEvent {
Error(WsClientError),
Push {
command_code: u8,
body: Vec<u8>,
},
}Expand description
The event type of Websocket client
Variants
Error(WsClientError)
When a error occurred
Push
When the server push a new message
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for WsEvent
impl Send for WsEvent
impl Sync for WsEvent
impl Unpin for WsEvent
impl !UnwindSafe for WsEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more