pub struct BleSecurity {
pub io_cap: u8,
pub oob_data_flag: bool,
pub bonding: bool,
pub mitm: bool,
pub secure_connections: bool,
pub secure_connections_only: bool,
pub keypress: bool,
pub min_sec_level: u8,
pub our_key_dist: u8,
pub their_key_dist: u8,
}Expand description
Security Manager (SMP) configuration, applied via
BleDriver::set_security before the host starts.
Fields§
§io_cap: u8Local IO capabilities (BLE_HS_IO_*).
oob_data_flag: bool§bonding: bool§mitm: bool§secure_connections: boolLE Secure Connections.
secure_connections_only: boolRestrict pairing to LE Secure Connections only.
keypress: bool§min_sec_level: u8Minimum GATT security level (sm_sec_lvl); 0 is ignored.
our_key_dist: u8Keys we distribute (BLE_SM_PAIR_KEY_DIST_* mask).
their_key_dist: u8Keys the peer distributes (BLE_SM_PAIR_KEY_DIST_* mask).
Implementations§
Source§impl BleSecurity
impl BleSecurity
Trait Implementations§
Source§impl Clone for BleSecurity
impl Clone for BleSecurity
Source§fn clone(&self) -> BleSecurity
fn clone(&self) -> BleSecurity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BleSecurity
Auto Trait Implementations§
impl Freeze for BleSecurity
impl RefUnwindSafe for BleSecurity
impl Send for BleSecurity
impl Sync for BleSecurity
impl Unpin for BleSecurity
impl UnsafeUnpin for BleSecurity
impl UnwindSafe for BleSecurity
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)