Enum thingbuf::mpsc::errors::RecvTimeoutError
source · #[non_exhaustive]pub enum RecvTimeoutError {
Timeout,
Closed,
}
Available on crate feature
std
only.Expand description
Error returned by the Receiver::recv_timeout
and Receiver::recv_ref_timeout
methods
(blocking only).
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 Debug for RecvTimeoutError
impl Debug for RecvTimeoutError
source§impl Display for RecvTimeoutError
impl Display for RecvTimeoutError
source§impl Error for RecvTimeoutError
impl Error for RecvTimeoutError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq for RecvTimeoutError
impl PartialEq for RecvTimeoutError
source§fn eq(&self, other: &RecvTimeoutError) -> bool
fn eq(&self, other: &RecvTimeoutError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RecvTimeoutError
impl StructuralPartialEq for RecvTimeoutError
Auto Trait Implementations§
impl Freeze for RecvTimeoutError
impl RefUnwindSafe for RecvTimeoutError
impl Send for RecvTimeoutError
impl Sync for RecvTimeoutError
impl Unpin for RecvTimeoutError
impl UnwindSafe for RecvTimeoutError
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