[][src]Struct apache_nimble_sys::ble_store_value_sec

#[repr(C)]pub struct ble_store_value_sec {
    pub peer_addr: ble_addr_t,
    pub key_size: u8,
    pub ediv: u16,
    pub rand_num: u64,
    pub ltk: [u8; 16],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub irk: [u8; 16],
    pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub csrk: [u8; 16],
    pub _bitfield_3: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub __bindgen_padding_0: u8,
}

Represents stored security material. This struct corresponds to the following store object types: o BLE_STORE_OBJ_TYPE_OUR_SEC o BLE_STORE_OBJ_TYPE_PEER_SEC

Fields

peer_addr: ble_addr_tkey_size: u8ediv: u16rand_num: u64ltk: [u8; 16]_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>irk: [u8; 16]_bitfield_2: __BindgenBitfieldUnit<[u8; 1], u8>csrk: [u8; 16]_bitfield_3: __BindgenBitfieldUnit<[u8; 1], u8>__bindgen_padding_0: u8

Implementations

impl ble_store_value_sec[src]

pub fn ltk_present(&self) -> u8[src]

pub fn set_ltk_present(&mut self, val: u8)[src]

pub fn new_bitfield_1(ltk_present: u8) -> __BindgenBitfieldUnit<[u8; 1], u8>[src]

pub fn irk_present(&self) -> u8[src]

pub fn set_irk_present(&mut self, val: u8)[src]

pub fn new_bitfield_2(irk_present: u8) -> __BindgenBitfieldUnit<[u8; 1], u8>[src]

pub fn csrk_present(&self) -> u8[src]

pub fn set_csrk_present(&mut self, val: u8)[src]

pub fn authenticated(&self) -> c_uint[src]

pub fn set_authenticated(&mut self, val: c_uint)[src]

pub fn sc(&self) -> u8[src]

pub fn set_sc(&mut self, val: u8)[src]

pub fn new_bitfield_3(
    csrk_present: u8,
    authenticated: c_uint,
    sc: u8
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for ble_store_value_sec[src]

impl Copy for ble_store_value_sec[src]

impl Debug for ble_store_value_sec[src]

Auto Trait Implementations

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, 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.