Enum tokio::sync::broadcast::TryRecvError [−][src]
pub enum TryRecvError { Empty, Closed, Lagged(u64), }
Variants
The channel is currently empty. There are still active
Sender
handles, so data may yet become available.
There are no more active senders implying no further messages will ever be sent.
Lagged(u64)
The receiver lagged too far behind and has been forcibly disconnected. Attempting to receive again will return the oldest message still retained by the channel.
Includes the number of skipped messages.
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]fn eq(&self, other: &TryRecvError) -> bool
[src]
fn eq(&self, other: &TryRecvError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TryRecvError) -> bool
[src]
fn ne(&self, other: &TryRecvError) -> bool
[src]This method tests for !=
.
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