pub struct TrackBuilder { /* private fields */ }
Expand description
Build a track with optional parameters.
Implementations§
Source§impl TrackBuilder
impl TrackBuilder
pub fn new() -> Self
pub fn path<T: ToString>(self, part: T) -> Self
pub fn priority(self, priority: i8) -> Self
pub fn group_order(self, order: GroupOrder) -> Self
pub fn group_expires(self, expires: Duration) -> Self
pub fn produce(self) -> (TrackProducer, TrackConsumer)
pub fn into(self) -> Track
Trait Implementations§
Source§impl Default for TrackBuilder
impl Default for TrackBuilder
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.
Auto Trait Implementations§
impl Freeze for TrackBuilder
impl RefUnwindSafe for TrackBuilder
impl Send for TrackBuilder
impl Sync for TrackBuilder
impl Unpin for TrackBuilder
impl UnwindSafe for TrackBuilder
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