#[non_exhaustive]pub enum WsLifecycleEvent {
Reconnecting {
attempt: usize,
delay: Duration,
},
Reconnected {
attempts: usize,
},
Disconnected {
reason: String,
final_: bool,
},
}Expand description
WebSocket lifecycle events emitted out-of-band from data streams.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for WsLifecycleEvent
impl Clone for WsLifecycleEvent
Source§fn clone(&self) -> WsLifecycleEvent
fn clone(&self) -> WsLifecycleEvent
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 WsLifecycleEvent
impl Debug for WsLifecycleEvent
Source§impl PartialEq for WsLifecycleEvent
impl PartialEq for WsLifecycleEvent
impl Eq for WsLifecycleEvent
impl StructuralPartialEq for WsLifecycleEvent
Auto Trait Implementations§
impl Freeze for WsLifecycleEvent
impl RefUnwindSafe for WsLifecycleEvent
impl Send for WsLifecycleEvent
impl Sync for WsLifecycleEvent
impl Unpin for WsLifecycleEvent
impl UnwindSafe for WsLifecycleEvent
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