pub enum Encryption {
Off,
On,
OnAesCcmForBrEdr,
}
Expand description
The type of used encryption for the connection.
The meaning of the encryption type depends on whether the Host has indicated support for Secure
Connections in the secure connections host support parameter. When secure connections host
support is ‘disabled’ or the connection handle refers to an LE link, the Controller shall only
use values Off
and On
. When secure connections host
support is ‘enabled’ and the connection handle refers to a BR/EDR link, the Controller shall set
the encryption type Off
when encryption is off, to On
when encryption is on and using E0 and to OnAesCcmForBrEdr
when encryption is on and using AES-CCM.
Variants§
Off
Encryption is disabled.
On
- On a BR/EDR link, encryption is enabled using E0
- On an LE link, encryption is enabled using AES-CCM
OnAesCcmForBrEdr
On a BR/EDR link, encryption is enabled using AES-CCM. Unused for LE links.
Trait Implementations§
Source§impl Clone for Encryption
impl Clone for Encryption
Source§fn clone(&self) -> Encryption
fn clone(&self) -> Encryption
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 Encryption
impl Debug for Encryption
Source§impl PartialEq for Encryption
impl PartialEq for Encryption
Source§impl TryFrom<u8> for Encryption
impl TryFrom<u8> for Encryption
impl Copy for Encryption
impl StructuralPartialEq for Encryption
Auto Trait Implementations§
impl Freeze for Encryption
impl RefUnwindSafe for Encryption
impl Send for Encryption
impl Sync for Encryption
impl Unpin for Encryption
impl UnwindSafe for Encryption
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