pub struct Info {
pub size: u64,
pub timestamp: Timestamp,
}Expand description
Fields§
§size: u64Total payload size in bytes. Declared up front so consumers can preallocate.
timestamp: TimestampPresentation timestamp.
group::Producer::create_frame converts it into the parent track’s
timescale, so the scale you build it with doesn’t have to match the track.
For data without a presentation time, pass Timestamp::now explicitly.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnsafeUnpin for Info
impl UnwindSafe for Info
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