pub enum WsEvent {
Error(WsClientError),
Push {
command_code: u8,
body: Vec<u8>,
},
}Expand description
The event type of Websocket client
Variants§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for WsEvent
impl !RefUnwindSafe for WsEvent
impl Send for WsEvent
impl Sync for WsEvent
impl Unpin for WsEvent
impl !UnwindSafe for WsEvent
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