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

Indicates if the encryption change was successful or not.

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.

Specifies the new encryption type parameter for conn_handle.

Trait Implementations

impl<VS: Copy> Copy for EncryptionChange<VS>
[src]

impl<VS: Clone> Clone for EncryptionChange<VS>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<VS: Debug> Debug for EncryptionChange<VS>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<VS> Send for EncryptionChange<VS> where
    VS: Send

impl<VS> Sync for EncryptionChange<VS> where
    VS: Sync