pub struct RecvError { /* private fields */ }Expand description
Error returned by crate::subscription::EventSubscription::recv and
crate::subscription::LifecycleSubscription::recv.
Implementations§
Source§impl RecvError
impl RecvError
Sourcepub fn kind(&self) -> &RecvErrorKind
pub fn kind(&self) -> &RecvErrorKind
The RecvErrorKind of this error.
Trait Implementations§
Source§impl Error for RecvError
impl Error for RecvError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
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.
Auto Trait Implementations§
impl !RefUnwindSafe for RecvError
impl !UnwindSafe for RecvError
impl Freeze for RecvError
impl Send for RecvError
impl Sync for RecvError
impl Unpin for RecvError
impl UnsafeUnpin for RecvError
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