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