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 encrypt_read(&self) -> bool
pub fn limited_use(&self) -> bool
pub fn no_mac(&self) -> bool
pub fn read_key(&self) -> ReadKey
pub fn write_key(&self) -> u8
pub fn set_secret(&mut self, value: bool)
pub fn set_encrypt_read(&mut self, value: bool)
pub fn set_limited_use(&mut self, value: bool)
pub fn set_no_mac(&mut self, value: bool)
pub fn set_read_key(&mut self, value: ReadKey)
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 SlotConfigwhere
u16: BitRange<T>,
impl<T> BitRange<T> for SlotConfigwhere
u16: BitRange<T>,
sourceimpl<T> BitRangeMut<T> for SlotConfigwhere
u16: BitRangeMut<T>,
impl<T> BitRangeMut<T> for SlotConfigwhere
u16: BitRangeMut<T>,
sourcefn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.
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<&[u8]> for SlotConfig
impl From<&[u8]> for SlotConfig
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
sourceimpl Serialize for SlotConfig
impl Serialize for SlotConfig
impl Eq for SlotConfig
impl StructuralEq 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> BitMut for Twhere
T: BitRangeMut<u8>,
impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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