pub enum TpmProtocolError {
CapacityExceeded,
InvalidAttestMagic,
InvalidTag,
InvalidValue,
InvalidVariant,
OperationFailed,
TooManyItems,
TrailingData,
UnexpectedEnd,
}Expand description
TPM protocol data error.
Variants§
CapacityExceeded
The amount data exceeds the maximum capacity of a type, as defined in the TCG specifications.
InvalidAttestMagic
An TpmAttest instance contains an invalid
magic value.
InvalidTag
Tag is neither Sessions nor
NoSessions.
InvalidValue
A value is not defined for the type.
InvalidVariant
An enum variant is not valid for the context of use.
OperationFailed
A cryptographic operation failed.
TooManyItems
The number of list items exceeds the maximum capability of a type, as defined in the TCG specifications.
TrailingData
Trailing data left after unmarshaling.
UnexpectedEnd
Not enough bytes to unmarshal.
Trait Implementations§
Source§impl Debug for TpmProtocolError
impl Debug for TpmProtocolError
Source§impl Display for TpmProtocolError
impl Display for TpmProtocolError
Source§impl Error for TpmProtocolError
impl Error for TpmProtocolError
1.30.0 · 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 PartialEq for TpmProtocolError
impl PartialEq for TpmProtocolError
impl Eq for TpmProtocolError
impl StructuralPartialEq for TpmProtocolError
Auto Trait Implementations§
impl Freeze for TpmProtocolError
impl RefUnwindSafe for TpmProtocolError
impl Send for TpmProtocolError
impl Sync for TpmProtocolError
impl Unpin for TpmProtocolError
impl UnwindSafe for TpmProtocolError
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