pub enum ValidationError {
AmbiguousSignature,
MissingSignature,
FailedValidation,
}Expand description
Error returned when commit signature verification fails.
Variants§
AmbiguousSignature
The metadata contains multiple signature entities for the same commit.
MissingSignature
No signature information was found in the metadata.
FailedValidation
The signature did not match the commit bytes or the public key was invalid.
Trait Implementations§
Source§impl From<Error> for ValidationError
impl From<Error> for ValidationError
Source§fn from(_: SignatureError) -> Self
fn from(_: SignatureError) -> Self
Converts an Ed25519 signature error into a ValidationError::FailedValidation.
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationError
impl UnwindSafe for ValidationError
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
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