pub enum TpmProtocolError {
CapacityExceeded,
BufferExceeded,
ListExceeded,
InvalidDiscriminant(&'static str, TpmDiscriminant),
MalformedValue,
TrailingData,
UnexpectedEof,
}Expand description
TPM protocol marshaling or unmarshaling error.
Variants§
CapacityExceeded
An architectural limit (e.g., MAX_SESSIONS) was exceeded.
BufferExceeded
Data size exceeds the u16 max for a TPM2B, or a writer’s buffer is full.
ListExceeded
Item count exceeds the u32 max for a TPML.
InvalidDiscriminant(&'static str, TpmDiscriminant)
Unknown discriminant for an enum or tagged union.
MalformedValue
The frame or object is malformed.
TrailingData
Trailing data left after unmarshaling.
UnexpectedEof
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