pub enum MemoryRepositoryError {
Show 14 variants
InvalidInput {
field: String,
message: String,
},
LimitExceeded {
resource: String,
limit: usize,
actual: usize,
},
NamespaceMismatch {
context: String,
},
NodeAlreadyExists {
node_id: String,
},
NodeNotFound {
node_id: String,
},
NodeRevisionNotFound {
node_id: String,
revision: u64,
},
RelationTargetNotFound {
node_id: String,
target_id: String,
},
EvidenceRequired {
node_id: String,
},
AdmissionNotAllowed {
node_id: String,
revision: u64,
current_revision: u64,
current_status: String,
},
RevisionConflict {
node_id: String,
expected: u64,
actual: u64,
},
IdempotencyConflict {
key: String,
},
InvalidTransition {
node_id: String,
from: String,
to: String,
},
InvariantViolation {
message: String,
},
Persistence {
operation: String,
message: String,
},
}Expand description
Typed failures returned by the durable memory repository.
Variants§
InvalidInput
LimitExceeded
NamespaceMismatch
NodeAlreadyExists
NodeNotFound
NodeRevisionNotFound
RelationTargetNotFound
EvidenceRequired
AdmissionNotAllowed
RevisionConflict
IdempotencyConflict
InvalidTransition
InvariantViolation
Persistence
Trait Implementations§
Source§impl Clone for MemoryRepositoryError
impl Clone for MemoryRepositoryError
Source§fn clone(&self) -> MemoryRepositoryError
fn clone(&self) -> MemoryRepositoryError
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 MemoryRepositoryError
impl Debug for MemoryRepositoryError
Source§impl Display for MemoryRepositoryError
impl Display for MemoryRepositoryError
impl Eq for MemoryRepositoryError
Source§impl Error for MemoryRepositoryError
impl Error for MemoryRepositoryError
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 MemoryRepositoryError
impl PartialEq for MemoryRepositoryError
impl StructuralPartialEq for MemoryRepositoryError
Auto Trait Implementations§
impl Freeze for MemoryRepositoryError
impl RefUnwindSafe for MemoryRepositoryError
impl Send for MemoryRepositoryError
impl Sync for MemoryRepositoryError
impl Unpin for MemoryRepositoryError
impl UnsafeUnpin for MemoryRepositoryError
impl UnwindSafe for MemoryRepositoryError
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