pub enum ValidateEntryError {
InvalidLinks,
PayloadHashMismatch,
PayloadSizeMismatch,
BacklinkAndSkiplinkIdentical,
WrongBacklinkLogId(u64, u64),
WrongSkiplinkLogId(u64, u64),
WrongBacklinkAuthor,
WrongBacklinkHash,
WrongSkiplinkAuthor,
WrongSkiplinkHash,
KeyPairError(KeyPairError),
}
Expand description
Errors from entry::validate
module.
Variants§
InvalidLinks
Invalid configuration of backlink and skiplink hashes for this sequence number.
PayloadHashMismatch
Operation needs to match payload hash of encoded entry.
PayloadSizeMismatch
Operation needs to match payload size of encoded entry.
BacklinkAndSkiplinkIdentical
Backlink and skiplink hashes should be different.
WrongBacklinkLogId(u64, u64)
Backlink entry does not match log id.
WrongSkiplinkLogId(u64, u64)
Skiplink entry does not match log id.
WrongBacklinkAuthor
Backlink entry from database has a different author.
WrongBacklinkHash
Backlink entry from database has a different hash.
WrongSkiplinkAuthor
Skiplink entry from database has a different author.
WrongSkiplinkHash
Skiplink entry from database has a different hash.
KeyPairError(KeyPairError)
Could not verify authorship of entry.
Trait Implementations§
Source§impl Debug for ValidateEntryError
impl Debug for ValidateEntryError
Source§impl Display for ValidateEntryError
impl Display for ValidateEntryError
Source§impl Error for ValidateEntryError
impl Error for ValidateEntryError
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<KeyPairError> for ValidateEntryError
impl From<KeyPairError> for ValidateEntryError
Source§fn from(source: KeyPairError) -> Self
fn from(source: KeyPairError) -> Self
Converts to this type from the input type.
Source§impl From<ValidateEntryError> for DecodeEntryError
impl From<ValidateEntryError> for DecodeEntryError
Source§fn from(source: ValidateEntryError) -> Self
fn from(source: ValidateEntryError) -> Self
Converts to this type from the input type.
Source§impl From<ValidateEntryError> for EncodeEntryError
impl From<ValidateEntryError> for EncodeEntryError
Source§fn from(source: ValidateEntryError) -> Self
fn from(source: ValidateEntryError) -> Self
Converts to this type from the input type.
Source§impl From<ValidateEntryError> for ValidateOperationError
impl From<ValidateEntryError> for ValidateOperationError
Source§fn from(source: ValidateEntryError) -> Self
fn from(source: ValidateEntryError) -> Self
Converts to this type from the input type.
Source§impl From<ValidateEntryError> for ValidationError
impl From<ValidateEntryError> for ValidationError
Source§fn from(source: ValidateEntryError) -> Self
fn from(source: ValidateEntryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidateEntryError
impl !RefUnwindSafe for ValidateEntryError
impl Send for ValidateEntryError
impl Sync for ValidateEntryError
impl Unpin for ValidateEntryError
impl !UnwindSafe for ValidateEntryError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more