pub struct Track {
pub path: String,
pub priority: i8,
pub order: GroupOrder,
}
Expand description
A track, a collection of indepedent groups (streams) with a specified order/priority.
Fields§
§path: String
The path of the track.
priority: i8
The priority of the track, relative to other tracks in the same session/broadcast.
order: GroupOrder
The preferred order to deliver groups in the track.
Implementations§
Source§impl Track
impl Track
pub fn new<S: ToString>(path: S) -> Self
pub fn build() -> TrackBuilder
pub fn produce(self) -> (TrackProducer, TrackConsumer)
Trait Implementations§
Source§impl From<TrackBuilder> for Track
impl From<TrackBuilder> for Track
Source§fn from(builder: TrackBuilder) -> Self
fn from(builder: TrackBuilder) -> Self
Converts to this type from the input type.
impl Eq for Track
impl StructuralPartialEq for Track
Auto Trait Implementations§
impl Freeze for Track
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnwindSafe for Track
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