pub enum StoreError {
Unavailable {
message: String,
},
SerializationFailed {
message: String,
},
Conflict {
event_id: String,
},
InvalidQuery {
message: String,
},
AuthFailed {
message: String,
},
RateLimited {
retry_after: Duration,
},
Timeout {
elapsed: Duration,
deadline: Duration,
},
NotFound {
message: String,
},
InvariantViolation {
message: String,
},
Internal {
message: String,
},
}Expand description
Error type for store operations.
Variants§
Storage backend is temporarily unavailable.
SerializationFailed
Serialization or deserialization failed.
Conflict
ID already exists (duplicate).
InvalidQuery
Query was malformed or invalid.
AuthFailed
Authentication with the store backend failed.
RateLimited
Rate limit exceeded; retry after delay.
Timeout
Operation timed out.
NotFound
Record not found.
InvariantViolation
Invariant violation in store (should not happen).
Internal
Internal error with no specific category.
Trait Implementations§
Source§impl CapabilityError for StoreError
impl CapabilityError for StoreError
Source§fn category(&self) -> ErrorCategory
fn category(&self) -> ErrorCategory
Returns the category of this error for generic handling. Read more
Source§fn is_transient(&self) -> bool
fn is_transient(&self) -> bool
Returns
true if the underlying condition may clear without changing the request. Read moreSource§fn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
Returns
true if retrying the operation makes sense given typical idempotency. Read moreSource§impl Clone for StoreError
impl Clone for StoreError
Source§fn clone(&self) -> StoreError
fn clone(&self) -> StoreError
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 moreSource§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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 StoreError
impl RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnsafeUnpin for StoreError
impl UnwindSafe for StoreError
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