pub enum InsertError {
Store(Error),
Validation(ValidationFailure),
NewerEntryExists,
EntryIsEmpty,
ReadOnly,
Closed,
}
Expand description
Error emitted when inserting entries into a Replica
failed
Variants§
Store(Error)
Storage error
Validation(ValidationFailure)
Validation failure
NewerEntryExists
A newer entry exists for either this entry’s key or a prefix of the key.
EntryIsEmpty
Attempted to insert an empty entry.
ReadOnly
Replica is read only.
Closed
The replica is closed, no operations may be performed.
Trait Implementations§
Source§impl Debug for InsertError
impl Debug for InsertError
Source§impl Display for InsertError
impl Display for InsertError
Source§impl Error for InsertError
impl Error for InsertError
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<ReadOnly> for InsertError
impl From<ReadOnly> for InsertError
Source§impl From<ValidationFailure> for InsertError
impl From<ValidationFailure> for InsertError
Source§fn from(source: ValidationFailure) -> Self
fn from(source: ValidationFailure) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InsertError
impl RefUnwindSafe for InsertError
impl Send for InsertError
impl Sync for InsertError
impl Unpin for InsertError
impl UnwindSafe for InsertError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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