#[repr(C, packed(1))]pub struct ble_gap_conn_sec_mode_t {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
}
Expand description
@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§
Trait Implementations§
source§impl Clone for ble_gap_conn_sec_mode_t
impl Clone for ble_gap_conn_sec_mode_t
source§fn clone(&self) -> ble_gap_conn_sec_mode_t
fn clone(&self) -> ble_gap_conn_sec_mode_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ble_gap_conn_sec_mode_t
impl Debug for ble_gap_conn_sec_mode_t
impl Copy for ble_gap_conn_sec_mode_t
Auto Trait Implementations§
impl RefUnwindSafe for ble_gap_conn_sec_mode_t
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
impl UnwindSafe for ble_gap_conn_sec_mode_t
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more