pub struct Lagged(pub u64);
Expand description
Error returned when a discovery watch stream lagged too far behind.
The stream returned from Endpoint::discovery_stream
yields this error
if the loop in which the stream is processed cannot keep up with the emitted
discovery events. Attempting to read the next item from the channel afterwards
will return the oldest DiscoveryItem
that is still retained.
Includes the number of skipped messages.
Tuple Fields§
§0: u64
Trait Implementations§
Source§impl Error for Lagged
impl Error for Lagged
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Lagged
impl RefUnwindSafe for Lagged
impl Send for Lagged
impl Sync for Lagged
impl Unpin for Lagged
impl UnwindSafe for Lagged
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more