pub enum TpmErrorKind {
AuthMissing,
Boundary,
CapacityExceeded,
Unreachable,
InvalidMagic {
expected: u32,
got: u32,
},
InvalidTag {
type_name: &'static str,
expected: u16,
got: u16,
},
InvalidValue,
NotDiscriminant(&'static str, TpmNotDiscriminant),
TrailingData,
ValueTooLarge,
}Variants§
AuthMissing
A command requires an authorization session but none was provided
Boundary
Insufficient amount of bytes available
CapacityExceeded
An operation would exceed the fixed capacity of a container
Unreachable
An unresolvable internal error
InvalidMagic
Invalid magic number for the data
InvalidTag
Invalid tag for the data
InvalidValue
Invalid value
NotDiscriminant(&'static str, TpmNotDiscriminant)
Not a valid discriminant for the target enum
TrailingData
Trailing data after parsing
ValueTooLarge
A size or count in the buffer is larger than the maximum allowed value
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