pub struct RemoteNameRequest(/* private fields */);
Expand description
Remote Name Request command ๐
Initiates a remote name request procedure for the specified Bluetooth device.
Implementationsยง
Sourceยงimpl RemoteNameRequest
impl RemoteNameRequest
Sourcepub fn new(
bd_addr: BdAddr,
page_scan_repetition_mode: PageScanRepetitionMode,
reserved: u8,
clock_offset: ClockOffset,
) -> Self
pub fn new( bd_addr: BdAddr, page_scan_repetition_mode: PageScanRepetitionMode, reserved: u8, clock_offset: ClockOffset, ) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for RemoteNameRequest
impl Clone for RemoteNameRequest
Sourceยงfn clone(&self) -> RemoteNameRequest
fn clone(&self) -> RemoteNameRequest
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 RemoteNameRequest
impl Cmd for RemoteNameRequest
Sourceยงtype Params = RemoteNameRequestParams
type Params = RemoteNameRequestParams
Parameters type for this command.
Sourceยงfn params(&self) -> &RemoteNameRequestParams
fn params(&self) -> &RemoteNameRequestParams
Parameters expected for this command.
Sourceยงimpl Debug for RemoteNameRequest
impl Debug for RemoteNameRequest
Sourceยงimpl From<RemoteNameRequestParams> for RemoteNameRequest
impl From<RemoteNameRequestParams> for RemoteNameRequest
Sourceยงfn from(params: RemoteNameRequestParams) -> Self
fn from(params: RemoteNameRequestParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for RemoteNameRequest
impl Hash for RemoteNameRequest
Sourceยงimpl Ord for RemoteNameRequest
impl Ord for RemoteNameRequest
Sourceยงfn cmp(&self, other: &RemoteNameRequest) -> Ordering
fn cmp(&self, other: &RemoteNameRequest) -> 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 RemoteNameRequest
impl PartialEq for RemoteNameRequest
Sourceยงimpl PartialOrd for RemoteNameRequest
impl PartialOrd for RemoteNameRequest
Sourceยงimpl SyncCmd for RemoteNameRequest
impl SyncCmd for RemoteNameRequest
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 RemoteNameRequest
impl WriteHci for RemoteNameRequest
impl Copy for RemoteNameRequest
impl Eq for RemoteNameRequest
impl StructuralPartialEq for RemoteNameRequest
Auto Trait Implementationsยง
impl Freeze for RemoteNameRequest
impl RefUnwindSafe for RemoteNameRequest
impl Send for RemoteNameRequest
impl Sync for RemoteNameRequest
impl Unpin for RemoteNameRequest
impl UnwindSafe for RemoteNameRequest
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.