pub struct SetConnectionEncryption(/* private fields */);
Expand description
Set Connection Encryption command ๐
Used to enable or disable encryption on a connection after authentication.
Implementationsยง
Sourceยงimpl SetConnectionEncryption
impl SetConnectionEncryption
Sourcepub fn new(handle: ConnHandle, encryption_enable: bool) -> Self
pub fn new(handle: ConnHandle, encryption_enable: bool) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for SetConnectionEncryption
impl Clone for SetConnectionEncryption
Sourceยงfn clone(&self) -> SetConnectionEncryption
fn clone(&self) -> SetConnectionEncryption
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 Cmd for SetConnectionEncryption
impl Cmd for SetConnectionEncryption
Sourceยงtype Params = SetConnectionEncryptionParams
type Params = SetConnectionEncryptionParams
Parameters type for this command.
Sourceยงfn params(&self) -> &SetConnectionEncryptionParams
fn params(&self) -> &SetConnectionEncryptionParams
Parameters expected for this command.
Sourceยงimpl Debug for SetConnectionEncryption
impl Debug for SetConnectionEncryption
Sourceยงimpl From<SetConnectionEncryptionParams> for SetConnectionEncryption
impl From<SetConnectionEncryptionParams> for SetConnectionEncryption
Sourceยงfn from(params: SetConnectionEncryptionParams) -> Self
fn from(params: SetConnectionEncryptionParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for SetConnectionEncryption
impl Hash for SetConnectionEncryption
Sourceยงimpl Ord for SetConnectionEncryption
impl Ord for SetConnectionEncryption
Sourceยงfn cmp(&self, other: &SetConnectionEncryption) -> Ordering
fn cmp(&self, other: &SetConnectionEncryption) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialEq for SetConnectionEncryption
impl PartialEq for SetConnectionEncryption
Sourceยงimpl PartialOrd for SetConnectionEncryption
impl PartialOrd for SetConnectionEncryption
Sourceยงimpl SyncCmd for SetConnectionEncryption
impl SyncCmd for SetConnectionEncryption
Sourceยงtype Return = ()
type Return = ()
The type of the parameters for the
CommandComplete
eventSourceยงfn param_handle(&self)
fn param_handle(&self)
Handle parameter for this command.
Sourceยงfn return_handle(_data: &[u8]) -> Result<Self::Handle, FromHciBytesError>
fn return_handle(_data: &[u8]) -> Result<Self::Handle, FromHciBytesError>
Extracts the
Self::Handle
from the return parameters for commands that return a handle. Read moreSourceยงimpl WriteHci for SetConnectionEncryption
impl WriteHci for SetConnectionEncryption
impl Copy for SetConnectionEncryption
impl Eq for SetConnectionEncryption
impl StructuralPartialEq for SetConnectionEncryption
Auto Trait Implementationsยง
impl Freeze for SetConnectionEncryption
impl RefUnwindSafe for SetConnectionEncryption
impl Send for SetConnectionEncryption
impl Sync for SetConnectionEncryption
impl Unpin for SetConnectionEncryption
impl UnwindSafe for SetConnectionEncryption
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> HostToControllerPacket for Twhere
T: Cmd,
impl<T> HostToControllerPacket for Twhere
T: Cmd,
Sourceยงconst KIND: PacketKind = const KIND: PacketKind = PacketKind::Cmd;
const KIND: PacketKind = const KIND: PacketKind = PacketKind::Cmd;
Packet kind associated with this HCI packet.