Enum stm32wb_hci::event::Encryption
source · 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 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 Encryption
impl Debug for Encryption
source§impl PartialEq<Encryption> for Encryption
impl PartialEq<Encryption> for Encryption
source§fn eq(&self, other: &Encryption) -> bool
fn eq(&self, other: &Encryption) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u8> for Encryption
impl TryFrom<u8> for Encryption
impl Copy for Encryption
impl StructuralPartialEq for Encryption
Auto Trait Implementations§
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