#[repr(align(64))]pub enum RecvError {
Lagged(u64),
Closed,
}Expand description
Error returned by Receiver::recv.
Variants§
Lagged(u64)
This receiver fell behind by the contained number of messages;
they were overwritten before it could read them. The receiver has
been fast-forwarded past the gap and will resume from the oldest
still-buffered message on the next recv().
Closed
Every Sender has been dropped and the backlog is drained —
no further values will ever arrive.
Trait Implementations§
impl Copy for RecvError
impl Eq for RecvError
Source§impl Error for RecvError
impl Error for RecvError
1.30.0 · 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()
impl StructuralPartialEq for RecvError
Auto Trait Implementations§
impl Freeze for RecvError
impl RefUnwindSafe for RecvError
impl Send for RecvError
impl Sync for RecvError
impl Unpin for RecvError
impl UnsafeUnpin for RecvError
impl UnwindSafe 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