pub struct SecurityConfig {
pub require_pairing: bool,
pub require_encryption: bool,
pub require_mitm_protection: bool,
pub require_secure_connections: bool,
pub app_layer_encryption: bool,
}Expand description
Security configuration
Fields§
§require_pairing: boolRequire pairing before data exchange
require_encryption: boolRequire encrypted connections
require_mitm_protection: boolEnable MITM protection
require_secure_connections: boolEnable Secure Connections (BLE 4.2+)
app_layer_encryption: boolEnable application-layer encryption (in addition to BLE)
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
Returns a duplicate 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 SecurityConfig
impl Debug for SecurityConfig
Auto Trait Implementations§
impl Freeze for SecurityConfig
impl RefUnwindSafe for SecurityConfig
impl Send for SecurityConfig
impl Sync for SecurityConfig
impl Unpin for SecurityConfig
impl UnwindSafe for SecurityConfig
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