[−][src]Struct nrf_softdevice_s132::ble_gap_conn_sec_mode_t
@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]
fn clone(&self) -> ble_gap_conn_sec_mode_t
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ble_gap_conn_sec_mode_t
[src]
impl Debug for ble_gap_conn_sec_mode_t
[src]
Auto Trait Implementations
impl Send for ble_gap_conn_sec_mode_t
impl Sync for ble_gap_conn_sec_mode_t
impl Unpin for ble_gap_conn_sec_mode_t
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,