pub struct Group {
pub sequence: u64,
}Expand description
A group contains a sequence number because they can arrive out of order.
You can use crate::TrackProducer::append_group if you just want to +1 the sequence number.
Fields§
§sequence: u64Per-track sequence number used to detect ordering and gaps. Higher numbers supersede lower ones; consumers may skip late arrivals.
Implementations§
Trait Implementations§
Source§impl From<Group> for GroupProducer
impl From<Group> for GroupProducer
Source§impl Ord for Group
impl Ord for Group
1.21.0 (const: unstable) · 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 PartialOrd for Group
impl PartialOrd for Group
impl Eq for Group
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
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