pub enum Event<T> {
Connected,
Message(T),
ParseError(String),
Reconnecting {
attempt: u32,
delay_ms: u64,
},
Disconnected {
reason: DisconnectReason,
},
}Variants§
Connected
Message(T)
ParseError(String)
A WebSocket text frame arrived but could not be deserialized. The connection stays open — the raw error description is included.
Reconnecting
Disconnected
Fields
§
reason: DisconnectReasonTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Event<T>where
T: Freeze,
impl<T> RefUnwindSafe for Event<T>where
T: RefUnwindSafe,
impl<T> Send for Event<T>where
T: Send,
impl<T> Sync for Event<T>where
T: Sync,
impl<T> Unpin for Event<T>where
T: Unpin,
impl<T> UnsafeUnpin for Event<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Event<T>where
T: UnwindSafe,
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