Enum iroh_sync::sync::InsertError
source · pub enum InsertError<S: Store<SignedEntry>> {
Store(S::Error),
Validation(ValidationFailure),
NewerEntryExists,
EntryIsEmpty,
Closed,
}Expand description
Error emitted when inserting entries into a Replica failed
Variants§
Store(S::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.
Closed
The replica is closed, no operations may be performed.
Trait Implementations§
source§impl<S: Store<SignedEntry>> Debug for InsertError<S>
impl<S: Store<SignedEntry>> Debug for InsertError<S>
source§impl<S: Store<SignedEntry>> Display for InsertError<S>
impl<S: Store<SignedEntry>> Display for InsertError<S>
source§impl<S: Store<SignedEntry>> Error for InsertError<S>
impl<S: Store<SignedEntry>> Error for InsertError<S>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<S: Store<SignedEntry>> From<ValidationFailure> for InsertError<S>
impl<S: Store<SignedEntry>> From<ValidationFailure> for InsertError<S>
source§fn from(source: ValidationFailure) -> Self
fn from(source: ValidationFailure) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> RefUnwindSafe for InsertError<S>where
<S as Store<SignedEntry>>::Error: RefUnwindSafe,
impl<S> Send for InsertError<S>
impl<S> Sync for InsertError<S>
impl<S> Unpin for InsertError<S>where
<S as Store<SignedEntry>>::Error: Unpin,
impl<S> UnwindSafe for InsertError<S>where
<S as Store<SignedEntry>>::Error: UnwindSafe,
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