pub struct Packets<'data, const BUFFER_SIZE: usize> { /* private fields */ }Expand description
Implementations§
Source§impl<const BUFFER_SIZE: usize> Packets<'_, BUFFER_SIZE>
impl<const BUFFER_SIZE: usize> Packets<'_, BUFFER_SIZE>
Sourcepub fn current_page_sequence_number(&self) -> u32
pub fn current_page_sequence_number(&self) -> u32
Returns page sequence number for the page being read.
Sourcepub fn last_page_sequence_number(&self) -> u32
pub fn last_page_sequence_number(&self) -> u32
Returns page sequence number of the last page.
Sourcepub fn bitstream_serial_number(&self) -> u32
pub fn bitstream_serial_number(&self) -> u32
Returns bitstream serial number for the page being read.
Sourcepub fn end_of_stream(&self) -> bool
pub fn end_of_stream(&self) -> bool
Returns whether the current page is the end of the stream.
Trait Implementations§
Source§impl<'data, const BUFFER_SIZE: usize> PartialEq for Packets<'data, BUFFER_SIZE>
impl<'data, const BUFFER_SIZE: usize> PartialEq for Packets<'data, BUFFER_SIZE>
impl<'data, const BUFFER_SIZE: usize> StructuralPartialEq for Packets<'data, BUFFER_SIZE>
Auto Trait Implementations§
impl<'data, const BUFFER_SIZE: usize> Freeze for Packets<'data, BUFFER_SIZE>
impl<'data, const BUFFER_SIZE: usize> RefUnwindSafe for Packets<'data, BUFFER_SIZE>
impl<'data, const BUFFER_SIZE: usize> Send for Packets<'data, BUFFER_SIZE>
impl<'data, const BUFFER_SIZE: usize> Sync for Packets<'data, BUFFER_SIZE>
impl<'data, const BUFFER_SIZE: usize> Unpin for Packets<'data, BUFFER_SIZE>
impl<'data, const BUFFER_SIZE: usize> UnsafeUnpin for Packets<'data, BUFFER_SIZE>
impl<'data, const BUFFER_SIZE: usize> UnwindSafe for Packets<'data, BUFFER_SIZE>
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