#[non_exhaustive]pub enum LiveConnErrorKind {
ConnectionLost,
Closed {
code: u16,
},
Other,
}Expand description
What kind of failure a LiveConnError is, as LiveConnError::is_resumable checks it.
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.
ConnectionLost
The socket of an established connection failed, or the stream ended without a close frame.
Closed
A close frame was received; a frame without a payload is 1005.
Other
Anything else.
Trait Implementations§
Source§impl Clone for LiveConnErrorKind
impl Clone for LiveConnErrorKind
impl Copy for LiveConnErrorKind
Source§impl Debug for LiveConnErrorKind
impl Debug for LiveConnErrorKind
impl Eq for LiveConnErrorKind
Source§impl PartialEq for LiveConnErrorKind
impl PartialEq for LiveConnErrorKind
impl StructuralPartialEq for LiveConnErrorKind
Auto Trait Implementations§
impl Forget for LiveConnErrorKind
impl Freeze for LiveConnErrorKind
impl Move for LiveConnErrorKind
impl RefUnwindSafe for LiveConnErrorKind
impl Send for LiveConnErrorKind
impl Sync for LiveConnErrorKind
impl Unpin for LiveConnErrorKind
impl UnsafeUnpin for LiveConnErrorKind
impl UnwindSafe for LiveConnErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.