pub struct Security {
pub encrypted: bool,
pub authenticated: bool,
pub secure_connections: bool,
pub key_size: u8,
pub bonded: bool,
}Expand description
How secure the link is.
Fields§
§encrypted: boolThe link is encrypted.
authenticated: boolThe key came from a pairing with MITM protection.
secure_connections: boolThe key came from LE Secure Connections.
key_size: u8Encryption key size, octets (7 to 16).
bonded: boolThe keys are stored (a bond).
Implementations§
Trait Implementations§
impl Copy for Security
impl Eq for Security
impl StructuralPartialEq for Security
Auto Trait Implementations§
impl Forget for Security
impl Freeze for Security
impl Move for Security
impl RefUnwindSafe for Security
impl Send for Security
impl Sync for Security
impl Unpin for Security
impl UnsafeUnpin for Security
impl UnwindSafe for Security
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