pub struct LeSetDataLength(/* private fields */);
Expand description
LE Set Data Length command ๐
Implementationsยง
Sourceยงimpl LeSetDataLength
impl LeSetDataLength
Sourcepub fn new(handle: ConnHandle, tx_octets: u16, tx_time: u16) -> Self
pub fn new(handle: ConnHandle, tx_octets: u16, tx_time: u16) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for LeSetDataLength
impl Clone for LeSetDataLength
Sourceยงfn clone(&self) -> LeSetDataLength
fn clone(&self) -> LeSetDataLength
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 LeSetDataLength
impl Cmd for LeSetDataLength
Sourceยงtype Params = LeSetDataLengthParams
type Params = LeSetDataLengthParams
Parameters type for this command.
Sourceยงfn params(&self) -> &LeSetDataLengthParams
fn params(&self) -> &LeSetDataLengthParams
Parameters expected for this command.
Sourceยงimpl Debug for LeSetDataLength
impl Debug for LeSetDataLength
Sourceยงimpl From<LeSetDataLengthParams> for LeSetDataLength
impl From<LeSetDataLengthParams> for LeSetDataLength
Sourceยงfn from(params: LeSetDataLengthParams) -> Self
fn from(params: LeSetDataLengthParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for LeSetDataLength
impl Hash for LeSetDataLength
Sourceยงimpl Ord for LeSetDataLength
impl Ord for LeSetDataLength
Sourceยงfn cmp(&self, other: &LeSetDataLength) -> Ordering
fn cmp(&self, other: &LeSetDataLength) -> 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 LeSetDataLength
impl PartialEq for LeSetDataLength
Sourceยงimpl PartialOrd for LeSetDataLength
impl PartialOrd for LeSetDataLength
Sourceยงimpl SyncCmd for LeSetDataLength
impl SyncCmd for LeSetDataLength
Sourceยงtype Return = ConnHandle
type Return = ConnHandle
The type of the parameters for the
CommandComplete
eventSourceยงtype Handle = ConnHandle
type Handle = ConnHandle
Handle returned by this command.
Sourceยงfn param_handle(&self) -> Self::Handle
fn param_handle(&self) -> Self::Handle
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 LeSetDataLength
impl WriteHci for LeSetDataLength
impl Copy for LeSetDataLength
impl Eq for LeSetDataLength
impl StructuralPartialEq for LeSetDataLength
Auto Trait Implementationsยง
impl Freeze for LeSetDataLength
impl RefUnwindSafe for LeSetDataLength
impl Send for LeSetDataLength
impl Sync for LeSetDataLength
impl Unpin for LeSetDataLength
impl UnwindSafe for LeSetDataLength
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.