pub enum TpmDeviceError {
Show 15 variants
AlreadyBorrowed,
CapabilityMissing(TpmCap),
Interrupted,
InvalidResponse,
Io(Error),
Marshal(TpmProtocolError),
NotAvailable,
OperationFailed,
PcrBanksNotAvailable,
PcrBankSelectionMismatch,
ResponseMismatch(TpmCc),
Timeout,
TpmRc(TpmRc),
Unmarshal(TpmProtocolError),
UnexpectedEof,
}Expand description
Errors that can occur when talking to a TPM device.
Variants§
AlreadyBorrowed
CapabilityMissing(TpmCap)
Interrupted
InvalidResponse
Io(Error)
Marshal(TpmProtocolError)
Marshaling a TPM protocol encoded object failed.
NotAvailable
OperationFailed
PcrBanksNotAvailable
PcrBankSelectionMismatch
ResponseMismatch(TpmCc)
The TPM response did not match the expected command code.
Timeout
TpmRc(TpmRc)
Unmarshal(TpmProtocolError)
Unmarshaling a TPM protocol encoded object failed.
UnexpectedEof
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
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