[][src]Struct apache_nimble_sys::ble_store_key_sec

#[repr(C)]pub struct ble_store_key_sec {
    pub peer_addr: ble_addr_t,
    pub ediv: u16,
    pub rand_num: u64,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub idx: u8,
}

Used as a key for lookups of 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_t

Key by peer identity address; peer_addr=BLE_ADDR_NONE means don't key off peer.

ediv: u16

Key by ediv; ediv_rand_present=0 means don't key off ediv.

rand_num: u64

Key by rand_num; ediv_rand_present=0 means don't key off rand_num.

_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>idx: u8

Number of results to skip; 0 means retrieve the first match.

Implementations

impl ble_store_key_sec[src]

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

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

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

Trait Implementations

impl Clone for ble_store_key_sec[src]

impl Copy for ble_store_key_sec[src]

impl Debug for ble_store_key_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.