#[repr(u32)]pub enum PinWeaverError {
Show 20 variants
VersionMismatch = 65_536,
TreeInvalid = 65_537,
LengthInvalid = 65_538,
TypeInvalid = 65_539,
BitsPerLevelInvalid = 65_540,
HeightInvalid = 65_541,
LabelInvalid = 65_542,
DelayScheudleInvalid = 65_543,
PathAuthFailed = 65_544,
LeafVersionMismatch = 65_545,
HmacAuthFailed = 65_546,
LowentAuthFailed = 65_547,
ResetAuthFailed = 65_548,
CryptoFailure = 65_549,
RateLimitReached = 65_550,
RootNotFound = 65_551,
NvEmpty = 65_552,
NvLengthMismatch = 65_553,
NvVersionMismatch = 65_554,
PcrNotMatch = 65_555,
}
Expand description
All the errors that can be returned by the CR50 for the PinWeaver protocol.
Variants§
VersionMismatch = 65_536
TreeInvalid = 65_537
LengthInvalid = 65_538
TypeInvalid = 65_539
BitsPerLevelInvalid = 65_540
HeightInvalid = 65_541
LabelInvalid = 65_542
DelayScheudleInvalid = 65_543
PathAuthFailed = 65_544
LeafVersionMismatch = 65_545
HmacAuthFailed = 65_546
LowentAuthFailed = 65_547
ResetAuthFailed = 65_548
CryptoFailure = 65_549
RateLimitReached = 65_550
RootNotFound = 65_551
NvEmpty = 65_552
NvLengthMismatch = 65_553
NvVersionMismatch = 65_554
PcrNotMatch = 65_555
Implementations§
Source§impl PinWeaverError
impl PinWeaverError
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl Clone for PinWeaverError
impl Clone for PinWeaverError
Source§fn clone(&self) -> PinWeaverError
fn clone(&self) -> PinWeaverError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PinWeaverError
impl Debug for PinWeaverError
Source§impl<D: ResourceDialect> Decode<PinWeaverError, D> for PinWeaverError
impl<D: ResourceDialect> Decode<PinWeaverError, D> for PinWeaverError
Source§impl<D: ResourceDialect> Encode<PinWeaverError, D> for PinWeaverError
impl<D: ResourceDialect> Encode<PinWeaverError, D> for PinWeaverError
Source§impl Hash for PinWeaverError
impl Hash for PinWeaverError
Source§impl Ord for PinWeaverError
impl Ord for PinWeaverError
Source§fn cmp(&self, other: &PinWeaverError) -> Ordering
fn cmp(&self, other: &PinWeaverError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PinWeaverError
impl PartialEq for PinWeaverError
Source§impl PartialOrd for PinWeaverError
impl PartialOrd for PinWeaverError
Source§impl TypeMarker for PinWeaverError
impl TypeMarker for PinWeaverError
Source§type Owned = PinWeaverError
type Owned = PinWeaverError
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for PinWeaverError
impl ValueTypeMarker for PinWeaverError
Source§type Borrowed<'a> = PinWeaverError
type Borrowed<'a> = PinWeaverError
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for PinWeaverError
impl Eq for PinWeaverError
impl StructuralPartialEq for PinWeaverError
Auto Trait Implementations§
impl Freeze for PinWeaverError
impl RefUnwindSafe for PinWeaverError
impl Send for PinWeaverError
impl Sync for PinWeaverError
impl Unpin for PinWeaverError
impl UnwindSafe for PinWeaverError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)