pub enum TpmDeviceError {
Show 14 variants
AlreadyBorrowed,
CapabilityMissing(TpmCap),
Interrupted,
InvalidResponse,
NotAvailable,
Marshal(TpmProtocolError),
Unmarshal(TpmProtocolError),
ResponseMismatch(TpmCc),
Timeout,
UnexpectedEof,
IntDecode(TryFromIntError),
Io(Error),
Nix(Error),
TpmRc(TpmRc),
}Expand description
Errors that can occur when talking to a TPM device.
Variants§
AlreadyBorrowed
CapabilityMissing(TpmCap)
Interrupted
InvalidResponse
NotAvailable
Marshal(TpmProtocolError)
Marshaling a TPM protocol encoded object failed.
Unmarshal(TpmProtocolError)
Unmarshaling a TPM protocol encoded object failed.
ResponseMismatch(TpmCc)
Timeout
UnexpectedEof
IntDecode(TryFromIntError)
Io(Error)
Nix(Error)
TpmRc(TpmRc)
Trait Implementations§
Source§impl Debug for TpmDeviceError
impl Debug for TpmDeviceError
Source§impl Display for TpmDeviceError
impl Display for TpmDeviceError
Source§impl Error for TpmDeviceError
impl Error for TpmDeviceError
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<Errno> for TpmDeviceError
impl From<Errno> for TpmDeviceError
Source§impl From<Error> for TpmDeviceError
impl From<Error> for TpmDeviceError
Source§impl From<TpmRc> for TpmDeviceError
impl From<TpmRc> for TpmDeviceError
Source§impl From<TryFromIntError> for TpmDeviceError
impl From<TryFromIntError> for TpmDeviceError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TpmDeviceError
impl !RefUnwindSafe for TpmDeviceError
impl Send for TpmDeviceError
impl Sync for TpmDeviceError
impl Unpin for TpmDeviceError
impl !UnwindSafe for TpmDeviceError
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