Struct Discoverer Subtitle Info Builder
Source pub struct DiscovererSubtitleInfoBuilder(/* private fields */);Expand description
Opaque structure for building DiscovererSubtitleInfo objects programmatically.
Implementations§
Source§impl DiscovererSubtitleInfoBuilder
impl DiscovererSubtitleInfoBuilder
Sourcepub fn new(stream_id: &str, caps: &Caps) -> Self
pub fn new(stream_id: &str, caps: &Caps) -> Self
Creates a new DiscovererSubtitleInfoBuilder.
§stream_id
the stream ID
§caps
the subtitle caps
§Returns
pub fn language(self, language: &str) -> Self
pub fn tags(self, tags: &TagList) -> Self
Sourcepub fn build(self) -> DiscovererSubtitleInfo
pub fn build(self) -> DiscovererSubtitleInfo
Builds and returns a new DiscovererSubtitleInfo. This frees the builder.
§Returns
a new DiscovererSubtitleInfo
Trait Implementations§
Source§impl Drop for DiscovererSubtitleInfoBuilder
Available on crate feature v1_30 only.
impl Drop for DiscovererSubtitleInfoBuilder
Available on crate feature
v1_30 only.Auto Trait Implementations§
impl !Send for DiscovererSubtitleInfoBuilder
impl !Sync for DiscovererSubtitleInfoBuilder
impl Freeze for DiscovererSubtitleInfoBuilder
impl RefUnwindSafe for DiscovererSubtitleInfoBuilder
impl Unpin for DiscovererSubtitleInfoBuilder
impl UnsafeUnpin for DiscovererSubtitleInfoBuilder
impl UnwindSafe for DiscovererSubtitleInfoBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more