#[non_exhaustive]pub enum KvPeerError {
ValueTooLarge {
id: EventId,
value_len: usize,
cap: usize,
},
Store(MemoryPeerError),
}Expand description
How a KvCappedPeer fails.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ValueTooLarge
One event’s value would exceed the cap. Nothing in the push was stored.
Fields
Store(MemoryPeerError)
The in-memory store behind the cap refused: an oversized batch, or a poisoned lock.
Trait Implementations§
Source§impl Classify for KvPeerError
impl Classify for KvPeerError
Source§impl Debug for KvPeerError
impl Debug for KvPeerError
Source§impl Display for KvPeerError
impl Display for KvPeerError
Source§impl Error for KvPeerError
impl Error for KvPeerError
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 KvPeerError
impl RefUnwindSafe for KvPeerError
impl Send for KvPeerError
impl Sync for KvPeerError
impl Unpin for KvPeerError
impl UnsafeUnpin for KvPeerError
impl UnwindSafe for KvPeerError
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