Struct rust_cryptoauthlib::ReadKey[][src]

pub struct ReadKey {
    pub encrypt_read: bool,
    pub slot_number: u8,
}

Detailed ATECC key slot read attributes

Fields

encrypt_read: bool

true = Reads from this slot will be encrypted using the procedure specified in the Read command using value of ‘slot_number’ to generate the encryption key. No input MAC is required. If this bit is true, then ‘is_secret’ from ‘SlotConfig’ struct must also be set. false = Clear text reads may be permitted, and the ‘slot_number’ field is irrelevant.

slot_number: u8

Valid range from 0 to 15. If 0 then this slot can be the source for the CheckMac copy operation. Do not use zero as a default. Do not set this field to zero unless the CheckMac copy operation is explicitly desired, regardless of any other read/write restrictions.

Trait Implementations

impl Clone for ReadKey[src]

impl Copy for ReadKey[src]

impl Debug for ReadKey[src]

Auto Trait Implementations

impl RefUnwindSafe for ReadKey

impl Send for ReadKey

impl Sync for ReadKey

impl Unpin for ReadKey

impl UnwindSafe for ReadKey

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.