Enum 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]fn clone(&self) -> TryRecvError
[src]
pub fn clone_from(&mut self, source: &Self)
[src]
impl Error for TryRecvError
[src]
impl Error for TryRecvError
[src]impl From<RecvError> for TryRecvError
1.24.0[src]
impl From<RecvError> for TryRecvError
1.24.0[src]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]impl Copy for TryRecvError
[src]
impl Eq for TryRecvError
[src]
impl StructuralEq for TryRecvError
[src]
impl StructuralPartialEq for TryRecvError
[src]
Auto Trait Implementations
impl RefUnwindSafe for TryRecvError
impl Send for TryRecvError
impl Sync for TryRecvError
impl Unpin for TryRecvError
impl UnwindSafe for TryRecvError
Blanket Implementations
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<R: Read + ?Sized> Read for &mut Rimpl<W: Write + ?Sized> Write for &mut W
[src]
Notable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<R: Read + ?Sized> Read for &mut Rimpl<W: Write + ?Sized> Write for &mut W
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<R: Read + ?Sized> Read for &mut Rimpl<W: Write + ?Sized> Write for &mut W
[src]
Notable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<R: Read + ?Sized> Read for &mut Rimpl<W: Write + ?Sized> Write for &mut W