Enum grafix_toolbox::uses::Sync::sync::mpsc::RecvTimeoutError 1.12.0[−][src]
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
This channel is currently empty, but the Sender(s) have not yet disconnected, so data may yet become available.
The channel’s sending half has become disconnected, and there will never be any more data received on it.
Trait Implementations
Converts a RecvError into a RecvTimeoutError.
This conversion always returns RecvTimeoutError::Disconnected.
No data is allocated on the heap.
Auto Trait Implementations
impl RefUnwindSafe for RecvTimeoutErrorimpl Send for RecvTimeoutErrorimpl Sync for RecvTimeoutErrorimpl Unpin for RecvTimeoutErrorimpl UnwindSafe for RecvTimeoutErrorBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> boolChecks if self is actually part of its subset T (and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SSUse with care! Same as self.to_subset but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SPThe inclusion map: converts self to the equivalent element of its superset.
pub fn vzip(self) -> V