pub enum WebSocketLiveEvent {
Frame(WebSocketFrame),
Error(String),
Closed(WebSocketCloseInfo),
}Expand description
A live event emitted on a WebSocket’s broadcast bus.
Variants§
Frame(WebSocketFrame)
A frame was sent or received.
Error(String)
A protocol error occurred.
Closed(WebSocketCloseInfo)
The connection closed.
Trait Implementations§
Source§impl Clone for WebSocketLiveEvent
impl Clone for WebSocketLiveEvent
Source§fn clone(&self) -> WebSocketLiveEvent
fn clone(&self) -> WebSocketLiveEvent
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 moreAuto Trait Implementations§
impl Freeze for WebSocketLiveEvent
impl RefUnwindSafe for WebSocketLiveEvent
impl Send for WebSocketLiveEvent
impl Sync for WebSocketLiveEvent
impl Unpin for WebSocketLiveEvent
impl UnsafeUnpin for WebSocketLiveEvent
impl UnwindSafe for WebSocketLiveEvent
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