pub struct SlotConfig(pub u16);Tuple Fields§
§0: u16Implementations§
Source§impl 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)
Source§impl SlotConfig
impl SlotConfig
pub fn write_config(&self, cmd: WriteCommand) -> WriteConfig
pub fn set_write_config<C>(&mut self, config: C)
Trait Implementations§
Source§impl<T> BitRange<T> for SlotConfig
impl<T> BitRange<T> for SlotConfig
Source§impl<T> BitRangeMut<T> for SlotConfigwhere
u16: BitRangeMut<T>,
impl<T> BitRangeMut<T> for SlotConfigwhere
u16: BitRangeMut<T>,
Source§fn 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.
Source§impl Debug for SlotConfig
impl Debug for SlotConfig
Source§impl Default for SlotConfig
A convenience function to get a slot configuratoin set up to
generate and store ECDSA private keys.
impl Default for SlotConfig
A convenience function to get a slot configuratoin set up to generate and store ECDSA private keys.
Source§impl From<&[u8]> for SlotConfig
impl From<&[u8]> for SlotConfig
Source§impl From<&SlotConfig> for u16
impl From<&SlotConfig> for u16
Source§fn from(v: &SlotConfig) -> Self
fn from(v: &SlotConfig) -> Self
Converts to this type from the input type.
Source§impl From<SlotConfig> for u16
impl From<SlotConfig> for u16
Source§fn from(v: SlotConfig) -> Self
fn from(v: SlotConfig) -> Self
Converts to this type from the input type.
Source§impl From<u16> for SlotConfig
impl From<u16> for SlotConfig
Source§impl PartialEq for SlotConfig
impl PartialEq for SlotConfig
Source§impl Serialize for SlotConfig
impl Serialize for SlotConfig
impl Eq for SlotConfig
impl StructuralPartialEq for SlotConfig
Auto Trait Implementations§
impl Freeze for SlotConfig
impl RefUnwindSafe for SlotConfig
impl Send for SlotConfig
impl Sync for SlotConfig
impl Unpin for SlotConfig
impl UnwindSafe for SlotConfig
Blanket Implementations§
Source§impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
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