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
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 RecvTimeoutError
impl Send for RecvTimeoutError
impl Sync for RecvTimeoutError
impl Unpin for RecvTimeoutError
impl UnwindSafe for RecvTimeoutError
Blanket Implementations
Mutably borrows from an owned value. Read more