Enum tokio::sync::mpsc::error::TryRecvError [−][src]
pub enum TryRecvError { Empty, Closed, }
Expand description
This enumeration is the list of the possible reasons that try_recv could not return data when called.
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 been closed, and there will never be any more data received on it.
Trait Implementations
impl Debug for TryRecvError
[src]
impl Debug for TryRecvError
[src]impl Display for TryRecvError
[src]
impl Display for TryRecvError
[src]impl Error for TryRecvError
[src]
impl Error for TryRecvError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl PartialEq<TryRecvError> for TryRecvError
[src]
impl PartialEq<TryRecvError> 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> 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
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more