pub enum TpmErrorKind {
Boundary,
TrailingData,
InvalidDiscriminant {
type_name: &'static str,
value: u64,
},
InvalidMagic {
expected: u32,
got: u32,
},
InvalidTag {
type_name: &'static str,
expected: u16,
got: u16,
},
InvalidValue,
ValueTooLarge,
AuthMissing,
InternalError,
}Variants§
Boundary
Insufficient amount of bytes available
TrailingData
Trailing data after parsing
InvalidDiscriminant
Not a valid discriminant for the target enum
InvalidMagic
Invalid magic number for the data
InvalidTag
Invalid tag for the data
InvalidValue
Invalid value
ValueTooLarge
A size or count in the buffer is larger than the maximum allowed value
AuthMissing
A command requires an authorization session but none was provided
InternalError
An unexpected internal error
Trait Implementations§
Source§impl Debug for TpmErrorKind
impl Debug for TpmErrorKind
Source§impl Display for TpmErrorKind
impl Display for TpmErrorKind
Source§impl From<TryFromIntError> for TpmErrorKind
impl From<TryFromIntError> for TpmErrorKind
Source§fn from(_: TryFromIntError) -> Self
fn from(_: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TpmErrorKind
impl PartialEq for TpmErrorKind
impl Eq for TpmErrorKind
impl StructuralPartialEq for TpmErrorKind
Auto Trait Implementations§
impl Freeze for TpmErrorKind
impl RefUnwindSafe for TpmErrorKind
impl Send for TpmErrorKind
impl Sync for TpmErrorKind
impl Unpin for TpmErrorKind
impl UnwindSafe for TpmErrorKind
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