pub enum TpmErrorKind {
Capacity(usize),
InvalidValue,
NotDiscriminant(&'static str, TpmNotDiscriminant),
TrailingData,
Underflow,
Failure,
}Variants§
Capacity(usize)
A value would exceed a capacity limit
InvalidValue
Invalid value
NotDiscriminant(&'static str, TpmNotDiscriminant)
Not a valid discriminant for the target enum
TrailingData
Trailing left data after parsing
Underflow
Not enough bytes to parse the full data structure.
Failure
An unresolvable 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