pub enum WebsocketEvent {
Open,
Message(String),
Error(String),
Close(u16, String),
Ping,
Pong,
}Variants§
Trait Implementations§
Source§impl Clone for WebsocketEvent
impl Clone for WebsocketEvent
Source§fn clone(&self) -> WebsocketEvent
fn clone(&self) -> WebsocketEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 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 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