pub enum Error {
Show 34 variants
ParsingError(ErrorKind),
InvalidInput,
Incomplete(Needed),
InvalidArmorWrappers,
InvalidChecksum,
Base64DecodeError(DecodeError),
RequestedSizeTooLarge,
NoMatchingPacket,
TooManyPackets,
RSAError(Error),
EllipticCurve(Error),
IOError {
source: Error,
},
MissingPackets,
InvalidKeyLength,
BlockMode,
MissingKey,
CfbInvalidKeyIvLength,
Unimplemented(String),
Unsupported(String),
Message(String),
PacketError(ErrorKind),
PacketIncomplete,
UnpadError,
PadError,
Utf8Error(Utf8Error),
ParseIntError(ParseIntError),
InvalidPacketContent(Box<Error>),
SignatureError(SignatureError),
MdcError,
TryFromInt(TryFromIntError),
Gcm,
Eax,
Ocb,
Sha1HashCollision,
}
Expand description
Error types
Variants§
ParsingError(ErrorKind)
InvalidInput
Incomplete(Needed)
InvalidArmorWrappers
InvalidChecksum
Base64DecodeError(DecodeError)
RequestedSizeTooLarge
NoMatchingPacket
TooManyPackets
RSAError(Error)
EllipticCurve(Error)
IOError
MissingPackets
InvalidKeyLength
BlockMode
MissingKey
CfbInvalidKeyIvLength
Unimplemented(String)
Unsupported(String)
Message(String)
PacketError(ErrorKind)
PacketIncomplete
UnpadError
PadError
Utf8Error(Utf8Error)
ParseIntError(ParseIntError)
InvalidPacketContent(Box<Error>)
SignatureError(SignatureError)
MdcError
TryFromInt(TryFromIntError)
Gcm
Eax
Ocb
Sha1HashCollision
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
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 ErrorConvert<Error> for Error
impl ErrorConvert<Error> for Error
source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for Error
impl From<Error> for Error
source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
source§impl From<InvalidLength> for Error
impl From<InvalidLength> for Error
source§fn from(_: InvalidLength) -> Error
fn from(_: InvalidLength) -> Error
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
source§impl From<UninitializedFieldError> for Error
impl From<UninitializedFieldError> for Error
source§fn from(err: UninitializedFieldError) -> Error
fn from(err: UninitializedFieldError) -> Error
Converts to this type from the input type.
source§impl From<UnpadError> for Error
impl From<UnpadError> for Error
source§fn from(_: UnpadError) -> Error
fn from(_: UnpadError) -> Error
Converts to this type from the input type.
source§impl<I, E> FromExternalError<I, E> for Error
impl<I, E> FromExternalError<I, E> for Error
source§fn from_external_error(input: I, kind: ErrorKind, e: E) -> Self
fn from_external_error(input: I, kind: ErrorKind, e: E) -> Self
Creates a new error from an input position, an ErrorKind indicating the
wrapping parser, and an external error
source§impl<I> ParseError<I> for Error
impl<I> ParseError<I> for Error
source§fn from_error_kind(_input: I, kind: ErrorKind) -> Self
fn from_error_kind(_input: I, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
source§fn append(_input: I, _kind: ErrorKind, other: Self) -> Self
fn append(_input: I, _kind: ErrorKind, other: Self) -> Self
Combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin 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
Mutably borrows from an owned value. Read more