pub enum RecvTimeoutError {
Timeout,
Disconnected,
}Expand description
This enumeration is the list of possible errors that made recv_timeout
unable to return data when called. This can occur with both a channel and
a sync_channel.
Variants
Timeout
This channel is currently empty, but the Sender(s) have not yet disconnected, so data may yet become available.
Disconnected
The channel’s sending half has become disconnected, and there will never be any more data received on it.
Trait Implementations
impl Clone for RecvTimeoutError
source
impl Clone for RecvTimeoutError
sourcefn clone(&self) -> RecvTimeoutError
source
fn clone(&self) -> RecvTimeoutError
sourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0 · source
fn clone_from(&mut self, source: &Self)
1.0.0 · sourcePerforms copy-assignment from source. Read more
impl Debug for RecvTimeoutError
source
impl Debug for RecvTimeoutError
sourceimpl Display for RecvTimeoutError
1.15.0 · source
impl Display for RecvTimeoutError
1.15.0 · sourceimpl Error for RecvTimeoutError
1.15.0 · source
impl Error for RecvTimeoutError
1.15.0 · sourcefn description(&self) -> &str
source
fn description(&self) -> &str
sourceuse the Display impl or to_string()
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · source
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · sourceThe lower-level source of this error, if any. Read more
impl From<RecvError> for RecvTimeoutError
1.24.0 · source
impl From<RecvError> for RecvTimeoutError
1.24.0 · sourcefn from(err: RecvError) -> RecvTimeoutError
source
fn from(err: RecvError) -> RecvTimeoutError
sourceConverts a RecvError into a RecvTimeoutError.
This conversion always returns RecvTimeoutError::Disconnected.
No data is allocated on the heap.
impl PartialEq<RecvTimeoutError> for RecvTimeoutError
source
impl PartialEq<RecvTimeoutError> for RecvTimeoutError
sourceimpl Copy for RecvTimeoutError
sourceimpl Eq for RecvTimeoutError
sourceimpl StructuralEq for RecvTimeoutError
sourceimpl StructuralPartialEq for RecvTimeoutError
sourceAuto 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 T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
sourceUses borrowed data to replace owned data, usually by cloning. Read more