Enum sp_std::sync::mpsc::TryRecvError 1.0.0[−][src]
pub enum TryRecvError {
Empty,
Disconnected,
}This enumeration is the list of the possible reasons that try_recv could
not 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
impl Clone for TryRecvError[src]
impl Clone for TryRecvError[src]pub fn clone(&self) -> TryRecvError[src]
pub fn clone_from(&mut self, source: &Self)[src]
impl Display for TryRecvError[src]
impl Display for TryRecvError[src]impl Error for TryRecvError[src]
impl Error for TryRecvError[src]impl From<RecvError> for TryRecvError1.24.0[src]
impl From<RecvError> for TryRecvError1.24.0[src]pub fn from(err: RecvError) -> TryRecvError[src]
Converts a RecvError into a TryRecvError.
This conversion always returns TryRecvError::Disconnected.
No data is allocated on the heap.
impl PartialEq<TryRecvError> for TryRecvError[src]
impl PartialEq<TryRecvError> for TryRecvError[src]