pub enum FormatError {
SignatureList(ParseError),
SignatureListX509(ErrorStack),
AuthVarPkcs7Der(ErrorStack),
AuthVarPkcs7DerHeader(Error),
}
Expand description
Errors that occur due to various formatting issues in the crypto objects.
Variants§
SignatureList(ParseError)
SignatureListX509(ErrorStack)
AuthVarPkcs7Der(ErrorStack)
AuthVarPkcs7DerHeader(Error)
Implementations§
Source§impl FormatError
impl FormatError
Sourcepub fn key_var_error(&self) -> bool
pub fn key_var_error(&self) -> bool
Whether the error is due to malformed data in the signature lists
Trait Implementations§
Source§impl Debug for FormatError
impl Debug for FormatError
Source§impl Display for FormatError
impl Display for FormatError
Source§impl Error for FormatError
impl Error for FormatError
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<FormatError> for AuthError
impl From<FormatError> for AuthError
Source§fn from(source: FormatError) -> Self
fn from(source: FormatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for FormatError
impl From<ParseError> for FormatError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FormatError
impl RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl UnwindSafe for FormatError
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