pub struct TrackProducer {
pub info: Track,
/* private fields */
}Expand description
A producer for a track, used to create new groups.
Fields§
§info: TrackImplementations§
Source§impl TrackProducer
impl TrackProducer
pub fn new(info: Track) -> Self
Sourcepub fn insert_group(&mut self, group: GroupConsumer) -> bool
pub fn insert_group(&mut self, group: GroupConsumer) -> bool
Insert a group into the track, returning true if this is the latest group.
Sourcepub fn create_group(&mut self, info: Group) -> Option<GroupProducer>
pub fn create_group(&mut self, info: Group) -> Option<GroupProducer>
Create a new group with the given sequence number.
If the sequence number is not the latest, this method will return None.
Sourcepub fn append_group(&mut self) -> GroupProducer
pub fn append_group(&mut self) -> GroupProducer
Create a new group with the next sequence number.
pub fn finish(&mut self)
pub fn abort(&mut self, err: Error)
Sourcepub fn consume(&self) -> TrackConsumer
pub fn consume(&self) -> TrackConsumer
Create a new consumer for the track.
Trait Implementations§
Source§impl Clone for TrackProducer
impl Clone for TrackProducer
Source§fn clone(&self) -> TrackProducer
fn clone(&self) -> TrackProducer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TrackProducer
impl RefUnwindSafe for TrackProducer
impl Send for TrackProducer
impl Sync for TrackProducer
impl Unpin for TrackProducer
impl UnwindSafe for TrackProducer
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