pub struct RejectSynchronousConnectionRequest(/* private fields */);
Expand description
Reject Synchronous Connection Request command ๐
Declines an incoming request for a synchronous connection.
Implementationsยง
Sourceยงimpl RejectSynchronousConnectionRequest
impl RejectSynchronousConnectionRequest
Sourcepub fn new(bd_addr: BdAddr, reason: RejectReason) -> Self
pub fn new(bd_addr: BdAddr, reason: RejectReason) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for RejectSynchronousConnectionRequest
impl Clone for RejectSynchronousConnectionRequest
Sourceยงfn clone(&self) -> RejectSynchronousConnectionRequest
fn clone(&self) -> RejectSynchronousConnectionRequest
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 RejectSynchronousConnectionRequest
impl Cmd for RejectSynchronousConnectionRequest
Sourceยงtype Params = RejectSynchronousConnectionRequestParams
type Params = RejectSynchronousConnectionRequestParams
Parameters type for this command.
Sourceยงfn params(&self) -> &RejectSynchronousConnectionRequestParams
fn params(&self) -> &RejectSynchronousConnectionRequestParams
Parameters expected for this command.
Sourceยงimpl From<RejectSynchronousConnectionRequestParams> for RejectSynchronousConnectionRequest
impl From<RejectSynchronousConnectionRequestParams> for RejectSynchronousConnectionRequest
Sourceยงfn from(params: RejectSynchronousConnectionRequestParams) -> Self
fn from(params: RejectSynchronousConnectionRequestParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Ord for RejectSynchronousConnectionRequest
impl Ord for RejectSynchronousConnectionRequest
Sourceยงfn cmp(&self, other: &RejectSynchronousConnectionRequest) -> Ordering
fn cmp(&self, other: &RejectSynchronousConnectionRequest) -> 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 RejectSynchronousConnectionRequest
impl PartialEq for RejectSynchronousConnectionRequest
Sourceยงfn eq(&self, other: &RejectSynchronousConnectionRequest) -> bool
fn eq(&self, other: &RejectSynchronousConnectionRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Sourceยงimpl PartialOrd for RejectSynchronousConnectionRequest
impl PartialOrd for RejectSynchronousConnectionRequest
Sourceยงimpl SyncCmd for RejectSynchronousConnectionRequest
impl SyncCmd for RejectSynchronousConnectionRequest
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 RejectSynchronousConnectionRequest
impl WriteHci for RejectSynchronousConnectionRequest
impl Copy for RejectSynchronousConnectionRequest
impl Eq for RejectSynchronousConnectionRequest
impl StructuralPartialEq for RejectSynchronousConnectionRequest
Auto Trait Implementationsยง
impl Freeze for RejectSynchronousConnectionRequest
impl RefUnwindSafe for RejectSynchronousConnectionRequest
impl Send for RejectSynchronousConnectionRequest
impl Sync for RejectSynchronousConnectionRequest
impl Unpin for RejectSynchronousConnectionRequest
impl UnwindSafe for RejectSynchronousConnectionRequest
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.