pub struct ReadTLVs<'a> { /* private fields */ }Expand description
A container for the TLVs in an action frame.
Implementations§
Source§impl<'a> ReadTLVs<'a>
impl<'a> ReadTLVs<'a>
pub const fn new(bytes: &'a [u8]) -> Self
Sourcepub fn raw_tlv_iter(&self) -> impl Iterator<Item = RawAWDLTLV<'a>> + '_
pub fn raw_tlv_iter(&self) -> impl Iterator<Item = RawAWDLTLV<'a>> + '_
Get an iterator over RawAWDLTLV’s.
Sourcepub fn get_tlvs<Tlv: AwdlTlv + TryFromCtx<'a, Error = Error>>(
&self,
) -> impl Iterator<Item = Tlv> + use<'_, 'a, Tlv>
pub fn get_tlvs<Tlv: AwdlTlv + TryFromCtx<'a, Error = Error>>( &self, ) -> impl Iterator<Item = Tlv> + use<'_, 'a, Tlv>
Get an iterator over matching TLVs.
Sourcepub fn get_first_tlv<Tlv: AwdlTlv + TryFromCtx<'a, Error = Error>>(
&self,
) -> Option<Tlv>
pub fn get_first_tlv<Tlv: AwdlTlv + TryFromCtx<'a, Error = Error>>( &self, ) -> Option<Tlv>
Get the first matching TLV.
Trait Implementations§
Source§impl MeasureWith<()> for ReadTLVs<'_>
impl MeasureWith<()> for ReadTLVs<'_>
Source§fn measure_with(&self, _ctx: &()) -> usize
fn measure_with(&self, _ctx: &()) -> usize
How large is
Self, given the ctx?Source§impl TryIntoCtx for ReadTLVs<'_>
impl TryIntoCtx for ReadTLVs<'_>
impl<'a> Copy for ReadTLVs<'a>
impl<'a> Eq for ReadTLVs<'a>
impl<'a> StructuralPartialEq for ReadTLVs<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReadTLVs<'a>
impl<'a> RefUnwindSafe for ReadTLVs<'a>
impl<'a> Send for ReadTLVs<'a>
impl<'a> Sync for ReadTLVs<'a>
impl<'a> Unpin for ReadTLVs<'a>
impl<'a> UnwindSafe for ReadTLVs<'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