Struct hls_m3u8::MediaSegmentBuilder [−][src]
pub struct MediaSegmentBuilder { /* fields omitted */ }
Media segment builder.
Methods
impl MediaSegmentBuilder
[src]
impl MediaSegmentBuilder
pub fn new() -> Self
[src]
pub fn new() -> Self
Makes a new MediaSegmentBuilder
instance.
ⓘImportant traits for &'a mut Rpub fn uri(&mut self, uri: SingleLineString) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn uri(&mut self, uri: SingleLineString) -> &mut Self
Sets the URI of the resulting media segment.
ⓘImportant traits for &'a mut Rpub fn tag<T: Into<MediaSegmentTag>>(&mut self, tag: T) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn tag<T: Into<MediaSegmentTag>>(&mut self, tag: T) -> &mut Self
Sets the given tag to the resulting media segment.
pub fn finish(self) -> Result<MediaSegment>
[src]
pub fn finish(self) -> Result<MediaSegment>
Builds a MediaSegment
instance.
Trait Implementations
impl Debug for MediaSegmentBuilder
[src]
impl Debug for MediaSegmentBuilder
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for MediaSegmentBuilder
[src]
impl Clone for MediaSegmentBuilder
fn clone(&self) -> MediaSegmentBuilder
[src]
fn clone(&self) -> MediaSegmentBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for MediaSegmentBuilder
[src]
impl Default for MediaSegmentBuilder
Auto Trait Implementations
impl Send for MediaSegmentBuilder
impl Send for MediaSegmentBuilder
impl Sync for MediaSegmentBuilder
impl Sync for MediaSegmentBuilder