pub enum TpmDeviceError {
Show 17 variants
AlreadyBorrowed,
CapabilityMissing(TpmCap),
Interrupted,
InvalidCc(TpmCc),
InvalidResponse,
Io(Error),
Marshal(TpmProtocolError),
NotAvailable,
OperationFailed,
PcrBanksNotAvailable,
PcrBankSelectionMismatch,
ResponseMismatch(TpmCc),
Timeout,
TpmRc(TpmRc),
TrailingData,
Unmarshal(TpmProtocolError),
UnexpectedEof,
}Expand description
Errors that can occur when talking to a TPM device.
Variants§
AlreadyBorrowed
The TPM device is already mutably borrowed.
CapabilityMissing(TpmCap)
The requested capability is not available from the TPM.
Interrupted
InvalidCc(TpmCc)
An invalid command code was used.
InvalidResponse
The TPM returned an invalid or malformed response.
Io(Error)
An I/O error occurred when accessing the TPM device.
Marshal(TpmProtocolError)
Marshaling a TPM protocol encoded object failed.
NotAvailable
No TPM device is available.
OperationFailed
The requested operation could not be completed.
PcrBanksNotAvailable
No PCR banks are available on the TPM.
PcrBankSelectionMismatch
The PCR selection masks differ between active banks.
ResponseMismatch(TpmCc)
The TPM response did not match the expected command code.
Timeout
The TPM command timed out.
TpmRc(TpmRc)
The TPM returned an error code.
TrailingData
Trailing data after the response.
Unmarshal(TpmProtocolError)
Unmarshaling a TPM protocol encoded object failed.
UnexpectedEof
An unexpected end-of-file was encountered.
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