Struct rust_cryptoauthlib::ChipOptions [−][src]
pub struct ChipOptions { pub io_key_enabled: bool, pub io_key_in_slot: u8, pub aes_enabled: bool, pub kdf_aes_enabled: bool, pub ecdh_output_protection: OutputProtectionState, pub kdf_output_protection: OutputProtectionState, }
Expand description
structure that stores data for options supported by the chip
Fields
io_key_enabled: bool
If true, then the protection functions are enabled via the secret key stored in the slot indicated by io_key_in_slot. If false, the security functions are disabled and fields ‘io_key_in_slot’, ‘ecdh_output_protection’ and ‘kdf_output_protection’ are irrelevant (only relevant for the ATECC608x chip)
io_key_in_slot: u8
slot number where the key for encrypting transmission between chip and host is placed
aes_enabled: bool
kdf_aes_enabled: bool
ecdh_output_protection: OutputProtectionState
kdf_output_protection: OutputProtectionState
Trait Implementations
impl Clone for ChipOptions
[src]
impl Clone for ChipOptions
[src]fn clone(&self) -> ChipOptions
[src]
fn clone(&self) -> ChipOptions
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ChipOptions
[src]
impl Debug for ChipOptions
[src]impl Default for ChipOptions
[src]
impl Default for ChipOptions
[src]fn default() -> ChipOptions
[src]
fn default() -> ChipOptions
[src]Returns the “default value” for a type. Read more
impl PartialEq<ChipOptions> for ChipOptions
[src]
impl PartialEq<ChipOptions> for ChipOptions
[src]fn eq(&self, other: &ChipOptions) -> bool
[src]
fn eq(&self, other: &ChipOptions) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ChipOptions) -> bool
[src]
fn ne(&self, other: &ChipOptions) -> bool
[src]This method tests for !=
.
impl Copy for ChipOptions
[src]
impl StructuralPartialEq for ChipOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChipOptions
impl Send for ChipOptions
impl Sync for ChipOptions
impl Unpin for ChipOptions
impl UnwindSafe for ChipOptions
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,