pub enum ReceiveErrorTimeout {
Closed,
SendClosed,
Timeout,
}Expand description
Error type for channel receive operations with timeout
Variants§
Closed
Indicates that the channel is closed on both sides with a call to
close()
SendClosed
Indicates that all sender instances are dropped and the channel is closed from the send side
Timeout
Indicates that channel operation reached timeout and is canceled
Trait Implementations§
Source§impl Debug for ReceiveErrorTimeout
impl Debug for ReceiveErrorTimeout
Source§impl Display for ReceiveErrorTimeout
impl Display for ReceiveErrorTimeout
Source§impl Error for ReceiveErrorTimeout
impl Error for ReceiveErrorTimeout
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()
Source§impl PartialEq for ReceiveErrorTimeout
impl PartialEq for ReceiveErrorTimeout
impl Eq for ReceiveErrorTimeout
impl StructuralPartialEq for ReceiveErrorTimeout
Auto Trait Implementations§
impl Freeze for ReceiveErrorTimeout
impl RefUnwindSafe for ReceiveErrorTimeout
impl Send for ReceiveErrorTimeout
impl Sync for ReceiveErrorTimeout
impl Unpin for ReceiveErrorTimeout
impl UnwindSafe for ReceiveErrorTimeout
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