pub enum FileTpmError {
Io(Error),
KeyNotFound(String),
InvalidKey(String),
Base64(String),
UnsupportedAlgorithm(String),
Sign(String),
}Expand description
Errors returned by FileTpm operations. Mapped to TrustError at the
public boundary so callers don’t need to depend on this module’s type.
Variants§
Io(Error)
KeyNotFound(String)
InvalidKey(String)
Base64(String)
UnsupportedAlgorithm(String)
Sign(String)
Trait Implementations§
Source§impl Debug for FileTpmError
impl Debug for FileTpmError
Source§impl Display for FileTpmError
impl Display for FileTpmError
Source§impl Error for FileTpmError
impl Error for FileTpmError
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<Error> for FileTpmError
impl From<Error> for FileTpmError
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.
Source§impl From<FileTpmError> for TrustError
impl From<FileTpmError> for TrustError
Source§fn from(e: FileTpmError) -> Self
fn from(e: FileTpmError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FileTpmError
impl !RefUnwindSafe for FileTpmError
impl Send for FileTpmError
impl Sync for FileTpmError
impl Unpin for FileTpmError
impl !UnwindSafe for FileTpmError
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