[][src]Struct nrf_softdevice_s140::ble_gap_conn_sec_mode_t

#[repr(C, packed)]pub struct ble_gap_conn_sec_mode_t {
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
}

@brief GAP connection security modes.

Security Mode 0 Level 0: No access permissions at all (this level is not defined by the Bluetooth Core specification).\n Security Mode 1 Level 1: No security is needed (aka open link).\n Security Mode 1 Level 2: Encrypted link required, MITM protection not necessary.\n Security Mode 1 Level 3: MITM protected encrypted link required.\n Security Mode 1 Level 4: LESC MITM protected encrypted link using a 128-bit strength encryption key required.\n Security Mode 2 Level 1: Signing or encryption required, MITM protection not necessary.\n Security Mode 2 Level 2: MITM protected signing required, unless link is MITM protected encrypted.\n

Fields

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

Implementations

impl ble_gap_conn_sec_mode_t[src]

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

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

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

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

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

Trait Implementations

impl Clone for ble_gap_conn_sec_mode_t[src]

impl Copy for ble_gap_conn_sec_mode_t[src]

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