pub struct TruncatedPage(/* private fields */);
Expand description
Truncated Page command ๐
Pages the BR/EDR Controller and then aborts the paging sequence after an ID response.
Implementationsยง
Sourceยงimpl TruncatedPage
impl TruncatedPage
Sourcepub fn new(
bd_addr: BdAddr,
page_scan_repetition_mode: PageScanRepetitionMode,
clock_offset: ClockOffset,
) -> Self
pub fn new( bd_addr: BdAddr, page_scan_repetition_mode: PageScanRepetitionMode, clock_offset: ClockOffset, ) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for TruncatedPage
impl Clone for TruncatedPage
Sourceยงfn clone(&self) -> TruncatedPage
fn clone(&self) -> TruncatedPage
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 TruncatedPage
impl Cmd for TruncatedPage
Sourceยงtype Params = TruncatedPageParams
type Params = TruncatedPageParams
Parameters type for this command.
Sourceยงfn params(&self) -> &TruncatedPageParams
fn params(&self) -> &TruncatedPageParams
Parameters expected for this command.
Sourceยงimpl Debug for TruncatedPage
impl Debug for TruncatedPage
Sourceยงimpl From<TruncatedPageParams> for TruncatedPage
impl From<TruncatedPageParams> for TruncatedPage
Sourceยงfn from(params: TruncatedPageParams) -> Self
fn from(params: TruncatedPageParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for TruncatedPage
impl Hash for TruncatedPage
Sourceยงimpl Ord for TruncatedPage
impl Ord for TruncatedPage
Sourceยงfn cmp(&self, other: &TruncatedPage) -> Ordering
fn cmp(&self, other: &TruncatedPage) -> 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 TruncatedPage
impl PartialEq for TruncatedPage
Sourceยงimpl PartialOrd for TruncatedPage
impl PartialOrd for TruncatedPage
Sourceยงimpl SyncCmd for TruncatedPage
impl SyncCmd for TruncatedPage
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 TruncatedPage
impl WriteHci for TruncatedPage
impl Copy for TruncatedPage
impl Eq for TruncatedPage
impl StructuralPartialEq for TruncatedPage
Auto Trait Implementationsยง
impl Freeze for TruncatedPage
impl RefUnwindSafe for TruncatedPage
impl Send for TruncatedPage
impl Sync for TruncatedPage
impl Unpin for TruncatedPage
impl UnwindSafe for TruncatedPage
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.