Enum oneshot::RecvTimeoutError
source · [−]pub enum RecvTimeoutError {
Timeout,
Disconnected,
}
Expand description
An error returned when trying a time limited blocking receive on a [Receiver
].
Variants
Timeout
No message arrived on the channel before the timeout was reached. The channel is still open.
Disconnected
The channel is closed. Either the sender was dropped before sending any message, or the message has already been extracted from the receiver.
Trait Implementations
sourceimpl Clone for RecvTimeoutError
impl Clone for RecvTimeoutError
sourcefn clone(&self) -> RecvTimeoutError
fn clone(&self) -> RecvTimeoutError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RecvTimeoutError
impl Debug for RecvTimeoutError
sourceimpl Display for RecvTimeoutError
impl Display for RecvTimeoutError
sourceimpl Error for RecvTimeoutError
impl Error for RecvTimeoutError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl Hash for RecvTimeoutError
impl Hash for RecvTimeoutError
sourceimpl PartialEq<RecvTimeoutError> for RecvTimeoutError
impl PartialEq<RecvTimeoutError> for RecvTimeoutError
sourcefn 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 ==
. Read more
impl Copy for RecvTimeoutError
impl Eq for RecvTimeoutError
impl StructuralEq for RecvTimeoutError
impl StructuralPartialEq for RecvTimeoutError
Auto Trait Implementations
impl RefUnwindSafe for RecvTimeoutError
impl Send for RecvTimeoutError
impl Sync for RecvTimeoutError
impl Unpin for RecvTimeoutError
impl UnwindSafe for RecvTimeoutError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more