pub enum WebsocketEvent {
Server(Event),
Reconnection(WebsocketReconnectionKind),
}Expand description
An event passed to on_message (or variant). This represents an event that could either be from the SMS server or the client (reconnection).
Variants§
Server(Event)
An event received from the server.
Reconnection(WebsocketReconnectionKind)
A reconnection event created by client worker.
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