pub struct Track {
pub path: Path,
pub priority: i8,
pub group_order: GroupOrder,
pub group_expires: Duration,
}
Expand description
A track, a collection of indepedent groups (streams) with a specified order/priority.
Fields§
§path: Path
The path of the track.
priority: i8
The priority of the track, relative to other tracks in the same session/broadcast.
group_order: GroupOrder
The preferred order to deliver groups in the track.
group_expires: Duration
The duration after which a group is considered expired.
Implementations§
Source§impl Track
impl Track
pub fn new(path: Path) -> 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