Enum iroh_docs::sync::ValidationFailure
source · pub enum ValidationFailure {
InvalidNamespace,
BadSignature,
TooFarInTheFuture,
InvalidEmptyEntry,
}
Expand description
Reason why entry validation failed
Variants§
InvalidNamespace
Entry namespace does not match the current replica.
BadSignature
Entry signature is invalid.
TooFarInTheFuture
Entry timestamp is too far in the future.
InvalidEmptyEntry
Entry has length 0 but not the empty hash, or the empty hash but not length 0.
Trait Implementations§
source§impl Debug for ValidationFailure
impl Debug for ValidationFailure
source§impl Display for ValidationFailure
impl Display for ValidationFailure
source§impl Error for ValidationFailure
impl Error for ValidationFailure
1.30.0 · 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 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 ValidationFailure
impl RefUnwindSafe for ValidationFailure
impl Send for ValidationFailure
impl Sync for ValidationFailure
impl Unpin for ValidationFailure
impl UnwindSafe for ValidationFailure
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