pub enum Cr50Status {
Show 13 variants
Success,
BogusArgs,
ReadFlashFail,
WriteFlashFail,
RequestTooBig,
ResponseTooBig,
InternalError,
NotAllowed,
NoSuchSubcommand,
InProgress,
PasswordRequired,
NvmemLocked,
NoSuchCommand,
// some variants omitted
}
Expand description
Vendor-specific TPM response codes.
Variants§
Success
Command succeeded.
BogusArgs
Incorrect parameters.
ReadFlashFail
Failed while reading from flash.
WriteFlashFail
Failed while writing to flash.
RequestTooBig
Request or part of request too big.
ResponseTooBig
Response too big for the response buffer allocated by the TPM.
InternalError
Unspecified internal error.
NotAllowed
Command not allowed in current state.
NoSuchSubcommand
Command was given an unknown subcommand.
InProgress
Command is in progress.
PasswordRequired
Password is required for this command.
NvmemLocked
Non-volatile memory was locked.
NoSuchCommand
Unsupported command.
Implementations§
Source§impl Cr50Status
impl Cr50Status
pub fn from_primitive(prim: u8) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u8) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for Cr50Status
impl Clone for Cr50Status
Source§fn clone(&self) -> Cr50Status
fn clone(&self) -> Cr50Status
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 Cr50Status
impl Debug for Cr50Status
Source§impl<D: ResourceDialect> Decode<Cr50Status, D> for Cr50Status
impl<D: ResourceDialect> Decode<Cr50Status, D> for Cr50Status
Source§impl<D: ResourceDialect> Encode<Cr50Status, D> for Cr50Status
impl<D: ResourceDialect> Encode<Cr50Status, D> for Cr50Status
Source§impl Hash for Cr50Status
impl Hash for Cr50Status
Source§impl Ord for Cr50Status
impl Ord for Cr50Status
Source§fn cmp(&self, other: &Cr50Status) -> Ordering
fn cmp(&self, other: &Cr50Status) -> 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 Cr50Status
impl PartialEq for Cr50Status
Source§impl PartialOrd for Cr50Status
impl PartialOrd for Cr50Status
Source§impl TypeMarker for Cr50Status
impl TypeMarker for Cr50Status
Source§type Owned = Cr50Status
type Owned = Cr50Status
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 Cr50Status
impl ValueTypeMarker for Cr50Status
Source§type Borrowed<'a> = Cr50Status
type Borrowed<'a> = Cr50Status
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 Cr50Status
impl Eq for Cr50Status
impl StructuralPartialEq for Cr50Status
Auto Trait Implementations§
impl Freeze for Cr50Status
impl RefUnwindSafe for Cr50Status
impl Send for Cr50Status
impl Sync for Cr50Status
impl Unpin for Cr50Status
impl UnwindSafe for Cr50Status
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
)