pub enum TpmProtocolError {
BufferTooLarge,
InvalidAttestMagic,
InvalidBoolean,
InvalidCc,
InvalidTag,
OperationFailed,
TooManyItems,
TrailingData,
UnexpectedEnd,
VariantMissing,
}Expand description
TPM frame marshaling and unmarshaling error type containing variants for all the possible error conditions.
Variants§
BufferTooLarge
Buffer contains more data than allowed by the TCG specifications.
InvalidAttestMagic
An TpmAttest instance contains an invalid
magic value.
InvalidBoolean
Boolean value was expected but the value is neither 0 nor 1.
InvalidCc
Non-existent command code encountered.
InvalidTag
Tag is neither Sessions nor
NoSessions.
OperationFailed
A cryptographic operation failed.
TooManyItems
List contains more items than allowed by the TCG specifications.
TrailingData
Trailing data left after unmarshaling.
UnexpectedEnd
Run out of bytes while unmarshaling.
VariantMissing
The requested variant is missing.
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