#[non_exhaustive]pub enum Error {
Show 29 variants
InvalidArgument(String),
InvalidOperation(String),
MalformedPacket(String),
PacketTooLarge(Tag, u32, u32),
UnsupportedPacketType(Tag),
UnsupportedHashAlgorithm(HashAlgorithm),
UnsupportedPublicKeyAlgorithm(PublicKeyAlgorithm),
UnsupportedEllipticCurve(Curve),
UnsupportedSymmetricAlgorithm(SymmetricAlgorithm),
UnsupportedAEADAlgorithm(AEADAlgorithm),
UnsupportedCompressionAlgorithm(CompressionAlgorithm),
UnsupportedSignatureType(SignatureType),
InvalidPassword,
InvalidSessionKey(String),
MissingSessionKey(String),
MalformedMPI(String),
BadSignature(String),
ManipulatedMessage,
MalformedMessage(String),
MalformedCert(String),
UnsupportedCert(String, Vec<Packet>),
IndexOutOfRange,
Expired(SystemTime),
NotYetLive(SystemTime),
NoBindingSignature(SystemTime),
InvalidKey(String),
NoAcceptableHash,
PolicyViolation(String, Option<SystemTime>),
ShortKeyID(String),
}Expand description
Errors used in this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidArgument(String)
Invalid argument.
InvalidOperation(String)
Invalid operation.
MalformedPacket(String)
A malformed packet.
PacketTooLarge(Tag, u32, u32)
Packet size exceeds the configured limit.
UnsupportedPacketType(Tag)
Unsupported packet type.
UnsupportedHashAlgorithm(HashAlgorithm)
Unsupported hash algorithm identifier.
UnsupportedPublicKeyAlgorithm(PublicKeyAlgorithm)
Unsupported public key algorithm identifier.
UnsupportedEllipticCurve(Curve)
Unsupported elliptic curve ASN.1 OID.
UnsupportedSymmetricAlgorithm(SymmetricAlgorithm)
Unsupported symmetric key algorithm.
UnsupportedAEADAlgorithm(AEADAlgorithm)
Unsupported AEAD algorithm.
UnsupportedCompressionAlgorithm(CompressionAlgorithm)
Unsupported Compression algorithm.
UnsupportedSignatureType(SignatureType)
Unsupported signature type.
InvalidPassword
Invalid password.
InvalidSessionKey(String)
Invalid session key.
MissingSessionKey(String)
Missing session key.
MalformedMPI(String)
Malformed MPI.
BadSignature(String)
Bad signature.
ManipulatedMessage
Message has been manipulated.
MalformedMessage(String)
Malformed message.
MalformedCert(String)
Malformed certificate.
UnsupportedCert(String, Vec<Packet>)
Unsupported Cert.
This usually occurs, because the primary key is in an unsupported format. In particular, Sequoia does not support version 3 keys.
IndexOutOfRange
Index out of range.
Expired(SystemTime)
Expired.
NotYetLive(SystemTime)
Not yet live.
NoBindingSignature(SystemTime)
No binding signature.
InvalidKey(String)
Invalid key.
NoAcceptableHash
No hash algorithm found that would be accepted by all signers.
PolicyViolation(String, Option<SystemTime>)
The operation is not allowed, because it violates the policy.
The optional time is the time at which the operation was determined to no longer be secure.
ShortKeyID(String)
Short key IDs are insecure, and not supported.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl<'a> From<VerificationError<'a>> for Error
impl<'a> From<VerificationError<'a>> for Error
Source§fn from(e: VerificationError<'a>) -> Error
fn from(e: VerificationError<'a>) -> Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<E> ExternalError for E
impl<E> ExternalError for E
fn into_lua_err(self) -> Error
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreimpl<T> MaybeSend for T
impl<T> MaybeSync for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more