Enum tokio::sync::broadcast::error::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.
Tuple Fields of Lagged
0: u64
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.