pub enum StoreError {
RelationshipAlreadyExists {
relationship: Box<Relationship>,
},
RelationshipNotFound {
relationship: Box<Relationship>,
},
DuplicateMutation {
relationship: Box<Relationship>,
},
PreconditionFailed {
precondition: Box<Precondition>,
},
MutationBatchTooLarge {
limit: usize,
actual: usize,
},
PreconditionBatchTooLarge {
limit: usize,
actual: usize,
},
CapacityExceeded {
component: &'static str,
},
InternalInvariant {
reason: &'static str,
},
DomainMaterialization {
message: String,
},
}Expand description
Errors produced by the indexed relationship store.
Variants§
RelationshipAlreadyExists
A create mutation attempted to insert an existing relationship.
Fields
§
relationship: Box<Relationship>Duplicate relationship.
RelationshipNotFound
A delete mutation targeted a missing relationship.
Fields
§
relationship: Box<Relationship>Missing relationship.
DuplicateMutation
A mutation batch contains conflicting mutations for the same relationship.
Fields
§
relationship: Box<Relationship>Duplicated relationship key.
PreconditionFailed
A precondition failed.
Fields
§
precondition: Box<Precondition>Failed precondition.
MutationBatchTooLarge
A mutation batch exceeded the configured in-memory store cap.
PreconditionBatchTooLarge
A precondition batch exceeded the configured in-memory store cap.
CapacityExceeded
A compact store id space was exhausted.
InternalInvariant
A compact store invariant was violated.
DomainMaterialization
Validated compact data failed to materialize back to a domain value.
Trait Implementations§
Source§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()
Source§impl From<DomainError> for StoreError
impl From<DomainError> for StoreError
Source§fn from(value: DomainError) -> Self
fn from(value: DomainError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for EngineError
impl From<StoreError> for EngineError
Source§fn from(error: StoreError) -> Self
fn from(error: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for SnapshotIoError
impl From<StoreError> for SnapshotIoError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for ZanzibarError
impl From<StoreError> for ZanzibarError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StoreError
impl PartialEq for StoreError
Source§fn eq(&self, other: &StoreError) -> bool
fn eq(&self, other: &StoreError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StoreError
impl StructuralPartialEq for StoreError
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