Enum ecc608_linux::address::Address
source · [−]pub enum Address {
Otp(OffsetAddress),
Config(OffsetAddress),
Data(DataAddress),
}Variants
Otp(OffsetAddress)
Config(OffsetAddress)
Data(DataAddress)
Implementations
sourceimpl Address
impl Address
pub fn otp(block: u8, offset: u8) -> Result<Self>
pub fn config(block: u8, offset: u8) -> Result<Self>
pub fn slot_config(slot: u8) -> Result<Self>
pub fn key_config(slot: u8) -> Result<Self>
pub fn data(slot: u8, block: u8, offset: u8) -> Result<Self>
pub fn zone(&self) -> u8
Trait Implementations
impl StructuralPartialEq for Address
Auto Trait Implementations
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more