pub enum HookRecvError {
Empty,
Lagged {
skipped: u64,
},
Closed,
}Expand description
Receive failure with explicit overflow semantics.
Variants§
Empty
No event is currently available to a non-blocking receiver.
Lagged
This subscriber fell behind the bounded ring buffer.
The consumer must re-read authoritative vault state before continuing.
Closed
The bus closed and all buffered events were drained.
Trait Implementations§
Source§impl Clone for HookRecvError
impl Clone for HookRecvError
Source§fn clone(&self) -> HookRecvError
fn clone(&self) -> HookRecvError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HookRecvError
Source§impl Debug for HookRecvError
impl Debug for HookRecvError
Source§impl Display for HookRecvError
impl Display for HookRecvError
impl Eq for HookRecvError
Source§impl Error for HookRecvError
impl Error for HookRecvError
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()
Source§impl PartialEq for HookRecvError
impl PartialEq for HookRecvError
impl StructuralPartialEq for HookRecvError
Auto Trait Implementations§
impl Freeze for HookRecvError
impl RefUnwindSafe for HookRecvError
impl Send for HookRecvError
impl Sync for HookRecvError
impl Unpin for HookRecvError
impl UnsafeUnpin for HookRecvError
impl UnwindSafe for HookRecvError
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.