#[repr(transparent)]pub struct UnlockMode(pub u32);
Expand description
The unlock mode for the OwnershipUnlock command.
Tuple Fields§
§0: u32
Implementations§
Source§impl UnlockMode
impl UnlockMode
pub const Unknown: UnlockMode = _
Sourcepub const Any: UnlockMode = _
pub const Any: UnlockMode = _
Unlock the chip to accept any next owner.
Sourcepub const Endorsed: UnlockMode = _
pub const Endorsed: UnlockMode = _
Unlock the chip to accept only the endorsed next owner.
Sourcepub const Update: UnlockMode = _
pub const Update: UnlockMode = _
Unlock the chip to update the current owner configuration.
Sourcepub const Abort: UnlockMode = _
pub const Abort: UnlockMode = _
Abort the unlock operation.
Source§impl UnlockMode
impl UnlockMode
Trait Implementations§
Source§impl Binary for UnlockMode
impl Binary for UnlockMode
Source§impl Clone for UnlockMode
impl Clone for UnlockMode
Source§fn clone(&self) -> UnlockMode
fn clone(&self) -> UnlockMode
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 UnlockMode
impl Debug for UnlockMode
Source§impl Default for UnlockMode
impl Default for UnlockMode
Source§impl<'de> Deserialize<'de> for UnlockMode
impl<'de> Deserialize<'de> for UnlockMode
Source§fn deserialize<D>(deserializer: D) -> Result<UnlockMode, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<UnlockMode, D::Error>where
D: Deserializer<'de>,
Deserializes the value by forwarding to deserialize_any
.
deserialize_any
will forward strings to the string visitor
and forward integers to the appropriate integer visitor.
Source§impl Display for UnlockMode
impl Display for UnlockMode
Source§impl From<UnlockMode> for u32
impl From<UnlockMode> for u32
Source§fn from(v: UnlockMode) -> u32
fn from(v: UnlockMode) -> u32
Converts to this type from the input type.
Source§impl FromStr for UnlockMode
impl FromStr for UnlockMode
Source§impl Hash for UnlockMode
impl Hash for UnlockMode
Source§impl LowerHex for UnlockMode
impl LowerHex for UnlockMode
Source§impl Octal for UnlockMode
impl Octal for UnlockMode
Source§impl Ord for UnlockMode
impl Ord for UnlockMode
Source§fn cmp(&self, other: &UnlockMode) -> Ordering
fn cmp(&self, other: &UnlockMode) -> 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 UnlockMode
impl PartialEq for UnlockMode
Source§impl PartialOrd for UnlockMode
impl PartialOrd for UnlockMode
Source§impl Serialize for UnlockMode
impl Serialize for UnlockMode
Source§impl TryFrom<i16> for UnlockMode
impl TryFrom<i16> for UnlockMode
Source§impl TryFrom<i32> for UnlockMode
impl TryFrom<i32> for UnlockMode
Source§impl TryFrom<i64> for UnlockMode
impl TryFrom<i64> for UnlockMode
Source§impl TryFrom<i8> for UnlockMode
impl TryFrom<i8> for UnlockMode
Source§impl TryFrom<u16> for UnlockMode
impl TryFrom<u16> for UnlockMode
Source§impl TryFrom<u32> for UnlockMode
impl TryFrom<u32> for UnlockMode
Source§impl TryFrom<u64> for UnlockMode
impl TryFrom<u64> for UnlockMode
Source§impl TryFrom<u8> for UnlockMode
impl TryFrom<u8> for UnlockMode
Source§impl UpperHex for UnlockMode
impl UpperHex for UnlockMode
Source§impl ValueEnum for UnlockMode
impl ValueEnum for UnlockMode
impl Copy for UnlockMode
impl Eq for UnlockMode
impl StructuralPartialEq for UnlockMode
Auto Trait Implementations§
impl Freeze for UnlockMode
impl RefUnwindSafe for UnlockMode
impl Send for UnlockMode
impl Sync for UnlockMode
impl Unpin for UnlockMode
impl UnwindSafe for UnlockMode
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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