pub struct TrackProducer {
pub info: Arc<Track>,
/* private fields */
}
Expand description
A producer for a track, used to create new groups.
Fields§
§info: Arc<Track>
Implementations§
Source§impl TrackProducer
impl TrackProducer
Sourcepub fn create_group(&mut self, sequence: u64) -> GroupProducer
pub fn create_group(&mut self, sequence: u64) -> GroupProducer
Build a new group with the given sequence number.
Sourcepub fn append_group(&mut self) -> GroupProducer
pub fn append_group(&mut self) -> GroupProducer
Build a new group with the next sequence number.
Sourcepub fn subscribe(&self) -> TrackConsumer
pub fn subscribe(&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