KeyConfig

Struct KeyConfig 

Source
pub struct KeyConfig(pub u16);

Tuple Fields§

§0: u16

Implementations§

Source§

impl KeyConfig

Source

pub fn auth_key(&self) -> u8

Source

pub fn intrusion_disable(&self) -> bool

Source

pub fn x509_index(&self) -> u8

Source

pub fn private(&self) -> bool

Source

pub fn pub_info(&self) -> bool

Source

pub fn key_type(&self) -> KeyConfigType

Source

pub fn lockable(&self) -> bool

Source

pub fn req_random(&self) -> bool

Source

pub fn req_auth(&self) -> bool

Source

pub fn set_auth_key(&mut self, value: u8)

Source

pub fn set_intrusion_disable(&mut self, value: bool)

Source

pub fn set_x509_index(&mut self, value: u8)

Source

pub fn set_private(&mut self, value: bool)

Source

pub fn set_pub_info(&mut self, value: bool)

Source

pub fn set_key_type(&mut self, value: KeyConfigType)

Source

pub fn set_is_lockable(&mut self, value: bool)

Source

pub fn set_req_random(&mut self, value: bool)

Source

pub fn set_req_auth(&mut self, value: bool)

Trait Implementations§

Source§

impl<T> BitRange<T> for KeyConfig
where u16: BitRange<T>,

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> T

Get a range of bits.
Source§

impl<T> BitRangeMut<T> for KeyConfig
where u16: BitRangeMut<T>,

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)

Set a range of bits.
Source§

impl Debug for KeyConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for KeyConfig

Returns a key configuration set up to store ECC key private keys.

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<&[u8]> for KeyConfig

Source§

fn from(v: &[u8]) -> Self

Converts to this type from the input type.
Source§

impl From<&KeyConfig> for u16

Source§

fn from(v: &KeyConfig) -> Self

Converts to this type from the input type.
Source§

impl From<KeyConfig> for u16

Source§

fn from(v: KeyConfig) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for KeyConfig

Source§

fn from(v: u16) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for KeyConfig

Source§

fn eq(&self, other: &KeyConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for KeyConfig

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for KeyConfig

Source§

impl StructuralPartialEq for KeyConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Bit for T
where T: BitRange<u8>,

Source§

fn bit(&self, bit: usize) -> bool

Get a single bit.
Source§

impl<T> BitMut for T
where T: BitRangeMut<u8>,

Source§

fn set_bit(&mut self, bit: usize, value: bool)

Set a single bit.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.