Struct bluetooth_hci::event::EncryptionChange [−][src]
pub struct EncryptionChange<VS> { pub status: Status<VS>, pub conn_handle: ConnectionHandle, pub encryption: Encryption, }
The Encryption Change event is used to indicate that the change of the encryption mode has been completed.
This event will occur on both devices to notify the Hosts when Encryption has changed for the specified connection handle between two devices. Note: This event shall not be generated if encryption is paused or resumed; during a role switch, for example.
See the Bluetooth v4.1 spec, Vol 2, Part E, Section 7.7.8.
Fields
status: Status<VS>
Indicates if the encryption change was successful or not.
conn_handle: ConnectionHandle
Connection handle for which the link layer encryption has been enabled/disabled for all connection handles with the same BR/EDR Controller endpoint as the specified connection handle.
The connection handle will be a connection handle for an ACL connection.
encryption: Encryption
Specifies the new encryption type parameter for
conn_handle
.
Trait Implementations
impl<VS: Copy> Copy for EncryptionChange<VS>
[src]
impl<VS: Copy> Copy for EncryptionChange<VS>
impl<VS: Clone> Clone for EncryptionChange<VS>
[src]
impl<VS: Clone> Clone for EncryptionChange<VS>
fn clone(&self) -> EncryptionChange<VS>
[src]
fn clone(&self) -> EncryptionChange<VS>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<VS: Debug> Debug for EncryptionChange<VS>
[src]
impl<VS: Debug> Debug for EncryptionChange<VS>
Auto Trait Implementations
impl<VS> Send for EncryptionChange<VS> where
VS: Send,
impl<VS> Send for EncryptionChange<VS> where
VS: Send,
impl<VS> Sync for EncryptionChange<VS> where
VS: Sync,
impl<VS> Sync for EncryptionChange<VS> where
VS: Sync,