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.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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.0fn 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.0fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl Hash for RecvTimeoutError
impl Hash for RecvTimeoutError
sourcefn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [
Hasher
]. Read more1.3.0fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Feeds a slice of this type into the given [
Hasher
]. Read moresourceimpl PartialEq<RecvTimeoutError> for RecvTimeoutError
impl PartialEq<RecvTimeoutError> for RecvTimeoutError
sourcefn eq(&self, other: &RecvTimeoutError) -> bool
fn eq(&self, other: &RecvTimeoutError) -> bool
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
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more