pub struct ChangeConnectionPacketType(/* private fields */);
Expand description
Change Connection Packet Type command ๐
Changes which packet types can be used for a connection that is currently established.
Implementationsยง
Sourceยงimpl ChangeConnectionPacketType
impl ChangeConnectionPacketType
Sourcepub fn new(handle: ConnHandle, packet_type: PacketType) -> Self
pub fn new(handle: ConnHandle, packet_type: PacketType) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for ChangeConnectionPacketType
impl Clone for ChangeConnectionPacketType
Sourceยงfn clone(&self) -> ChangeConnectionPacketType
fn clone(&self) -> ChangeConnectionPacketType
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 ChangeConnectionPacketType
impl Cmd for ChangeConnectionPacketType
Sourceยงtype Params = ChangeConnectionPacketTypeParams
type Params = ChangeConnectionPacketTypeParams
Parameters type for this command.
Sourceยงfn params(&self) -> &ChangeConnectionPacketTypeParams
fn params(&self) -> &ChangeConnectionPacketTypeParams
Parameters expected for this command.
Sourceยงimpl Debug for ChangeConnectionPacketType
impl Debug for ChangeConnectionPacketType
Sourceยงimpl From<ChangeConnectionPacketTypeParams> for ChangeConnectionPacketType
impl From<ChangeConnectionPacketTypeParams> for ChangeConnectionPacketType
Sourceยงfn from(params: ChangeConnectionPacketTypeParams) -> Self
fn from(params: ChangeConnectionPacketTypeParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for ChangeConnectionPacketType
impl Hash for ChangeConnectionPacketType
Sourceยงimpl Ord for ChangeConnectionPacketType
impl Ord for ChangeConnectionPacketType
Sourceยงfn cmp(&self, other: &ChangeConnectionPacketType) -> Ordering
fn cmp(&self, other: &ChangeConnectionPacketType) -> 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 ChangeConnectionPacketType
impl PartialEq for ChangeConnectionPacketType
Sourceยงfn eq(&self, other: &ChangeConnectionPacketType) -> bool
fn eq(&self, other: &ChangeConnectionPacketType) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Sourceยงimpl PartialOrd for ChangeConnectionPacketType
impl PartialOrd for ChangeConnectionPacketType
Sourceยงimpl SyncCmd for ChangeConnectionPacketType
impl SyncCmd for ChangeConnectionPacketType
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 ChangeConnectionPacketType
impl WriteHci for ChangeConnectionPacketType
impl Copy for ChangeConnectionPacketType
impl Eq for ChangeConnectionPacketType
impl StructuralPartialEq for ChangeConnectionPacketType
Auto Trait Implementationsยง
impl Freeze for ChangeConnectionPacketType
impl RefUnwindSafe for ChangeConnectionPacketType
impl Send for ChangeConnectionPacketType
impl Sync for ChangeConnectionPacketType
impl Unpin for ChangeConnectionPacketType
impl UnwindSafe for ChangeConnectionPacketType
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.