pub enum SafeBagError {
Malformed(String),
Pkcs8(String),
KeyConversion(String),
Tpm(FileTpmError),
UnsupportedAlgorithm(String),
}Expand description
Errors specific to SafeBag encode/decode and PKCS#8 encryption.
Variants§
Malformed(String)
Pkcs8(String)
KeyConversion(String)
Tpm(FileTpmError)
UnsupportedAlgorithm(String)
Trait Implementations§
Source§impl Debug for SafeBagError
impl Debug for SafeBagError
Source§impl Display for SafeBagError
impl Display for SafeBagError
Source§impl Error for SafeBagError
impl Error for SafeBagError
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<FileTpmError> for SafeBagError
impl From<FileTpmError> for SafeBagError
Source§fn from(source: FileTpmError) -> Self
fn from(source: FileTpmError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SafeBagError
impl !RefUnwindSafe for SafeBagError
impl Send for SafeBagError
impl Sync for SafeBagError
impl Unpin for SafeBagError
impl !UnwindSafe for SafeBagError
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