Struct ecc608_linux::slot_config::SlotConfig
source · [−]pub struct SlotConfig(pub u16);Tuple Fields
0: u16Implementations
sourceimpl SlotConfig
impl SlotConfig
pub fn secret(&self) -> bool
pub fn set_secret(&mut self, value: bool)
pub fn encrypt_read(&self) -> bool
pub fn set_encrypt_read(&mut self, value: bool)
pub fn limited_use(&self) -> bool
pub fn set_limited_use(&mut self, value: bool)
pub fn no_mac(&self) -> bool
pub fn set_no_mac(&mut self, value: bool)
pub fn read_key(&self) -> ReadKey
pub fn set_read_key(&mut self, value: ReadKey)
pub fn write_key(&self) -> u8
pub fn set_write_key(&mut self, value: u8)
sourceimpl SlotConfig
impl SlotConfig
pub fn write_config(&self, cmd: WriteCommand) -> WriteConfig
pub fn set_write_config<C>(&mut self, config: C) where
C: Into<u8>,
Trait Implementations
sourceimpl<T> BitRange<T> for SlotConfig where
u16: BitRange<T>,
impl<T> BitRange<T> for SlotConfig where
u16: BitRange<T>,
sourceimpl Debug for SlotConfig
impl Debug for SlotConfig
sourceimpl Default for SlotConfig
impl Default for SlotConfig
A convenience function to get a slot configuratoin set up to generate and store ECDSA private keys.
sourceimpl From<&'_ SlotConfig> for u16
impl From<&'_ SlotConfig> for u16
sourcefn from(v: &SlotConfig) -> Self
fn from(v: &SlotConfig) -> Self
Converts to this type from the input type.
sourceimpl From<SlotConfig> for u16
impl From<SlotConfig> for u16
sourcefn from(v: SlotConfig) -> Self
fn from(v: SlotConfig) -> Self
Converts to this type from the input type.
sourceimpl From<u16> for SlotConfig
impl From<u16> for SlotConfig
sourceimpl PartialEq<SlotConfig> for SlotConfig
impl PartialEq<SlotConfig> for SlotConfig
sourcefn eq(&self, other: &SlotConfig) -> bool
fn eq(&self, other: &SlotConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlotConfig) -> bool
fn ne(&self, other: &SlotConfig) -> bool
This method tests for !=.
sourceimpl Serialize for SlotConfig
impl Serialize for SlotConfig
impl StructuralPartialEq for SlotConfig
Auto Trait Implementations
impl RefUnwindSafe for SlotConfig
impl Send for SlotConfig
impl Sync for SlotConfig
impl Unpin for SlotConfig
impl UnwindSafe for SlotConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more