#[non_exhaustive]pub enum RecvErrorKind {
Closed,
Lagged(Lagged),
}Expand description
Error kind for subscription receive operations.
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.
Closed
The producer is gone — the session has shut down or the client has stopped. No further events will be delivered.
Lagged(Lagged)
The subscriber fell behind. See Lagged.
Trait Implementations§
Source§impl Clone for RecvErrorKind
impl Clone for RecvErrorKind
Source§fn clone(&self) -> RecvErrorKind
fn clone(&self) -> RecvErrorKind
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 moreimpl Copy for RecvErrorKind
Source§impl Debug for RecvErrorKind
impl Debug for RecvErrorKind
Source§impl Display for RecvErrorKind
impl Display for RecvErrorKind
impl Eq for RecvErrorKind
Source§impl From<RecvErrorKind> for RecvError
impl From<RecvErrorKind> for RecvError
Source§fn from(kind: RecvErrorKind) -> Self
fn from(kind: RecvErrorKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RecvErrorKind
impl PartialEq for RecvErrorKind
Source§fn eq(&self, other: &RecvErrorKind) -> bool
fn eq(&self, other: &RecvErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecvErrorKind
Auto Trait Implementations§
impl Freeze for RecvErrorKind
impl RefUnwindSafe for RecvErrorKind
impl Send for RecvErrorKind
impl Sync for RecvErrorKind
impl Unpin for RecvErrorKind
impl UnsafeUnpin for RecvErrorKind
impl UnwindSafe for RecvErrorKind
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