pub struct LeSetPrivacyMode(/* private fields */);
Expand description
LE Set Privacy Mode command ๐
Implementationsยง
Sourceยงimpl LeSetPrivacyMode
impl LeSetPrivacyMode
Sourcepub fn new(
peer_id_addr_kind: AddrKind,
peer_id_addr: BdAddr,
privacy_mode: PrivacyMode,
) -> Self
pub fn new( peer_id_addr_kind: AddrKind, peer_id_addr: BdAddr, privacy_mode: PrivacyMode, ) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for LeSetPrivacyMode
impl Clone for LeSetPrivacyMode
Sourceยงfn clone(&self) -> LeSetPrivacyMode
fn clone(&self) -> LeSetPrivacyMode
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 LeSetPrivacyMode
impl Cmd for LeSetPrivacyMode
Sourceยงtype Params = LeSetPrivacyModeParams
type Params = LeSetPrivacyModeParams
Parameters type for this command.
Sourceยงfn params(&self) -> &LeSetPrivacyModeParams
fn params(&self) -> &LeSetPrivacyModeParams
Parameters expected for this command.
Sourceยงimpl Debug for LeSetPrivacyMode
impl Debug for LeSetPrivacyMode
Sourceยงimpl From<LeSetPrivacyModeParams> for LeSetPrivacyMode
impl From<LeSetPrivacyModeParams> for LeSetPrivacyMode
Sourceยงfn from(params: LeSetPrivacyModeParams) -> Self
fn from(params: LeSetPrivacyModeParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for LeSetPrivacyMode
impl Hash for LeSetPrivacyMode
Sourceยงimpl Ord for LeSetPrivacyMode
impl Ord for LeSetPrivacyMode
Sourceยงfn cmp(&self, other: &LeSetPrivacyMode) -> Ordering
fn cmp(&self, other: &LeSetPrivacyMode) -> 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 LeSetPrivacyMode
impl PartialEq for LeSetPrivacyMode
Sourceยงimpl PartialOrd for LeSetPrivacyMode
impl PartialOrd for LeSetPrivacyMode
Sourceยงimpl SyncCmd for LeSetPrivacyMode
impl SyncCmd for LeSetPrivacyMode
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 LeSetPrivacyMode
impl WriteHci for LeSetPrivacyMode
impl Copy for LeSetPrivacyMode
impl Eq for LeSetPrivacyMode
impl StructuralPartialEq for LeSetPrivacyMode
Auto Trait Implementationsยง
impl Freeze for LeSetPrivacyMode
impl RefUnwindSafe for LeSetPrivacyMode
impl Send for LeSetPrivacyMode
impl Sync for LeSetPrivacyMode
impl Unpin for LeSetPrivacyMode
impl UnwindSafe for LeSetPrivacyMode
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.