Enum RecvTimeoutError
pub enum RecvTimeoutError
An error returned from the recv_timeout method.
Variants
-
Timeout A message could not be received because the channel is empty and the operation timed out.
If this is a zero-capacity channel, then the error indicates that there was no sender available to send a message and the operation timed out.
-
Disconnected The message could not be received because the channel is empty and disconnected.
Implementations
impl RecvTimeoutError
fn is_timeout(&self) -> boolReturns
trueif the receive operation timed out.fn is_disconnected(&self) -> boolReturns
trueif the receive operation failed because the channel is disconnected.
Trait Implementations
impl Clone for RecvTimeoutError
fn clone(&self) -> RecvTimeoutError
impl Copy for RecvTimeoutError
impl Debug for RecvTimeoutError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for RecvTimeoutError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for RecvTimeoutError
impl Error for RecvTimeoutError
impl From<RecvError> for RecvTimeoutError
fn from(err: RecvError) -> RecvTimeoutError
impl PartialEq for RecvTimeoutError
fn eq(&self, other: &RecvTimeoutError) -> bool
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 UnsafeUnpin for RecvTimeoutError
impl UnwindSafe for RecvTimeoutError
Blanket Implementations
impl<T> Any for RecvTimeoutError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RecvTimeoutError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RecvTimeoutError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for RecvTimeoutError
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for RecvTimeoutError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for RecvTimeoutError
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for RecvTimeoutError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for RecvTimeoutError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RecvTimeoutError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for RecvTimeoutError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>