pub struct IsoPacket<'a> { /* private fields */ }
Expand description
HCI ISO Data packet ๐
Implementationsยง
Sourceยงimpl<'a> IsoPacket<'a>
impl<'a> IsoPacket<'a>
Sourcepub fn from_header_hci_bytes(
header: IsoPacketHeader,
data: &'a [u8],
) -> Result<(Self, &'a [u8]), FromHciBytesError>
pub fn from_header_hci_bytes( header: IsoPacketHeader, data: &'a [u8], ) -> Result<(Self, &'a [u8]), FromHciBytesError>
Create an IsoPacket
from header
and data
Sourcepub fn handle(&self) -> ConnHandle
pub fn handle(&self) -> ConnHandle
The identifier of the logical channel between the Host and the Controller.
Sourcepub fn boundary_flag(&self) -> IsoPacketBoundary
pub fn boundary_flag(&self) -> IsoPacketBoundary
The PB_Flag
of the packet
Sourcepub fn data_load_header(&self) -> Option<IsoDataLoadHeader>
pub fn data_load_header(&self) -> Option<IsoDataLoadHeader>
Gets the IsoDataLoadHeader
for this packet, if present.
Sourcepub fn data_load_len(&self) -> usize
pub fn data_load_len(&self) -> usize
Gets the size of the data section of this packet, including the IsoDataLoadHeader
(if present).
Trait Implementationsยง
Sourceยงimpl<'de> FromHciBytes<'de> for IsoPacket<'de>
impl<'de> FromHciBytes<'de> for IsoPacket<'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 HostToControllerPacket for IsoPacket<'_>
impl HostToControllerPacket for IsoPacket<'_>
Sourceยงconst KIND: PacketKind = PacketKind::IsoData
const KIND: PacketKind = PacketKind::IsoData
Packet kind associated with this HCI packet.
Sourceยงimpl<'a> Ord for IsoPacket<'a>
impl<'a> Ord for IsoPacket<'a>
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> PartialOrd for IsoPacket<'a>
impl<'a> PartialOrd for IsoPacket<'a>
Sourceยงimpl<'de> ReadHci<'de> for IsoPacket<'de>
impl<'de> ReadHci<'de> for IsoPacket<'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 IsoPacket<'_>
impl WriteHci for IsoPacket<'_>
impl<'a> Copy for IsoPacket<'a>
impl<'a> Eq for IsoPacket<'a>
impl<'a> StructuralPartialEq for IsoPacket<'a>
Auto Trait Implementationsยง
impl<'a> Freeze for IsoPacket<'a>
impl<'a> RefUnwindSafe for IsoPacket<'a>
impl<'a> Send for IsoPacket<'a>
impl<'a> Sync for IsoPacket<'a>
impl<'a> Unpin for IsoPacket<'a>
impl<'a> UnwindSafe for IsoPacket<'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