Enum Read Copy item path Source pub enum Read {
Frame {
group: u64 ,
frame: Frame ,
},
Gap {
timestamp: Timestamp,
duration: Duration ,
},
End {
group: u64 ,
end: Timestamp,
},
}Expand description One item of a Consumer read, in delivery order.
A media frame from group.
Fields The group’s sequence number. Only equality means anything: numbers may skip.
The media frame delivered by the group.
Media after an item already read will never reach this reader: a group was skipped,
evicted, or never arrived. A decoder resumes from here without the references or
state that media built. Joining mid-track is not a gap: nothing was read before it.
The span is an upper bound, and timestamp is in the scale of the item that follows.
Fields The furthest presentation point already read. Without a per-frame duration this
is the last frame’s timestamp, one frame early.
How long until the next item resumes, so it also covers any declared pause.
The publisher declared that its media stops at end: it paused, switched source, or
finished. Frames that follow from the same group are the stopped encoder’s final
packets (an audio codec’s drain), whose output at or past end is padding. The next
group starts fresh.
Fields The group’s sequence number. Only equality means anything: numbers may skip.
Where the media stops, at the scale the marker was encoded with.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more Mutably dereferences the given pointer.
Read more Drops the object pointed to by the given pointer.
Read more The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.