pub enum HintStoreError {
OverCapacity {
max_bytes: u64,
},
ZeroTtl,
EmptyPayload,
}Expand description
Errors produced by HintStore::enqueue.
Variants§
OverCapacity
The store has reached max_bytes. The caller is
expected to fall back to its non-handoff error path
(typically, return DynomiteNoQuorumAchieved to the
client) and the next drainer sweep will reclaim space
when peers come back online.
ZeroTtl
The supplied TTL is zero. A zero TTL would be expired immediately by the next sweep, so the store rejects it up front to surface a configuration error.
EmptyPayload
The hint payload is empty. The wire-replay path requires at least one byte; an empty payload is rejected so the drainer never produces a no-op outbound write.
Trait Implementations§
Source§impl Debug for HintStoreError
impl Debug for HintStoreError
Source§impl Display for HintStoreError
impl Display for HintStoreError
Source§impl Error for HintStoreError
impl Error for HintStoreError
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 HintStoreError
impl PartialEq for HintStoreError
Source§fn eq(&self, other: &HintStoreError) -> bool
fn eq(&self, other: &HintStoreError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HintStoreError
impl StructuralPartialEq for HintStoreError
Auto Trait Implementations§
impl Freeze for HintStoreError
impl RefUnwindSafe for HintStoreError
impl Send for HintStoreError
impl Sync for HintStoreError
impl Unpin for HintStoreError
impl UnsafeUnpin for HintStoreError
impl UnwindSafe for HintStoreError
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<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§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.