pub enum HintStoreError {
OverCapacity {
max_bytes: u64,
},
ZeroTtl,
EmptyPayload,
Io {
message: String,
},
}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.
Io
A durable segment write failed. The hint was not persisted; the caller must treat the enqueue as failed and fall back to its non-handoff error path rather than risk silently losing the write across a restart.
Trait Implementations§
Source§impl Debug for HintStoreError
impl Debug for HintStoreError
Source§impl Display for HintStoreError
impl Display for HintStoreError
impl Eq 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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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
self and other values to be equal, and is used by ==.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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
key and return true if they are equal.