pub struct SyncPacket<'a> { /* private fields */ }
Expand description
HCI Synchronous Data packet ๐
Implementationsยง
Sourceยงimpl<'a> SyncPacket<'a>
impl<'a> SyncPacket<'a>
Sourcepub fn from_header_hci_bytes(
header: SyncPacketHeader,
data: &'a [u8],
) -> Result<(Self, &'a [u8]), FromHciBytesError>
pub fn from_header_hci_bytes( header: SyncPacketHeader, data: &'a [u8], ) -> Result<(Self, &'a [u8]), FromHciBytesError>
Create a SyncPacket
from header
and data
Sourcepub fn handle(&self) -> ConnHandle
pub fn handle(&self) -> ConnHandle
Connection_Handle
to be used to for transmitting a synchronous data packet or segment.
Sourcepub fn status(&self) -> SyncPacketStatus
pub fn status(&self) -> SyncPacketStatus
The Packet_Status_Flag
of the packet
Trait Implementationsยง
Sourceยงimpl<'a> Clone for SyncPacket<'a>
impl<'a> Clone for SyncPacket<'a>
Sourceยงfn clone(&self) -> SyncPacket<'a>
fn clone(&self) -> SyncPacket<'a>
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<'a> Debug for SyncPacket<'a>
impl<'a> Debug for SyncPacket<'a>
Sourceยงimpl<'de> FromHciBytes<'de> for SyncPacket<'de>
impl<'de> FromHciBytes<'de> for SyncPacket<'de>
Sourceยงfn from_hci_bytes(
data: &'de [u8],
) -> Result<(Self, &'de [u8]), FromHciBytesError>
fn from_hci_bytes( data: &'de [u8], ) -> Result<(Self, &'de [u8]), FromHciBytesError>
Deserialize bytes into a HCI type, return additional bytes.
Sourceยงfn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
Deserialize bytes into a HCI type, must consume all bytes.
Sourceยงimpl<'a> Hash for SyncPacket<'a>
impl<'a> Hash for SyncPacket<'a>
Sourceยงimpl HostToControllerPacket for SyncPacket<'_>
impl HostToControllerPacket for SyncPacket<'_>
Sourceยงconst KIND: PacketKind = PacketKind::SyncData
const KIND: PacketKind = PacketKind::SyncData
Packet kind associated with this HCI packet.
Sourceยงimpl<'a> Ord for SyncPacket<'a>
impl<'a> Ord for SyncPacket<'a>
Sourceยงfn cmp(&self, other: &SyncPacket<'a>) -> Ordering
fn cmp(&self, other: &SyncPacket<'a>) -> 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<'a> PartialEq for SyncPacket<'a>
impl<'a> PartialEq for SyncPacket<'a>
Sourceยงimpl<'a> PartialOrd for SyncPacket<'a>
impl<'a> PartialOrd for SyncPacket<'a>
Sourceยงimpl<'de> ReadHci<'de> for SyncPacket<'de>
impl<'de> ReadHci<'de> for SyncPacket<'de>
Sourceยงfn read_hci<R: Read>(
reader: R,
buf: &'de mut [u8],
) -> Result<Self, ReadHciError<R::Error>>
fn read_hci<R: Read>( reader: R, buf: &'de mut [u8], ) -> Result<Self, ReadHciError<R::Error>>
Read this type from the provided reader.
Sourceยงasync fn read_hci_async<R: Read>(
reader: R,
buf: &'de mut [u8],
) -> Result<Self, ReadHciError<R::Error>>
async fn read_hci_async<R: Read>( reader: R, buf: &'de mut [u8], ) -> Result<Self, ReadHciError<R::Error>>
Read this type from the provided reader, async version.
Sourceยงimpl WriteHci for SyncPacket<'_>
impl WriteHci for SyncPacket<'_>
impl<'a> Copy for SyncPacket<'a>
impl<'a> Eq for SyncPacket<'a>
impl<'a> StructuralPartialEq for SyncPacket<'a>
Auto Trait Implementationsยง
impl<'a> Freeze for SyncPacket<'a>
impl<'a> RefUnwindSafe for SyncPacket<'a>
impl<'a> Send for SyncPacket<'a>
impl<'a> Sync for SyncPacket<'a>
impl<'a> Unpin for SyncPacket<'a>
impl<'a> UnwindSafe for SyncPacket<'a>
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