Struct Discoverer Info Builder
Source pub struct DiscovererInfoBuilder(/* private fields */);Expand description
Opaque structure for building DiscovererInfo objects programmatically.
Implementations§
Source§impl DiscovererInfoBuilder
impl DiscovererInfoBuilder
Sourcepub fn new(uri: &str, stream_info: impl IsA<DiscovererStreamInfo>) -> Self
pub fn new(uri: &str, stream_info: impl IsA<DiscovererStreamInfo>) -> Self
Creates a new DiscovererInfoBuilder for building a DiscovererInfo.
The stream info can be either:
- A single stream (audio, video, or subtitle) for files without a container
- A
DiscovererContainerInfofor files with a container and multiple streams
§uri
the URI for this discoverer info
§stream_info
the stream info (single stream or container)
§Returns
a new DiscovererInfoBuilder
pub fn duration(self, duration: ClockTime) -> Self
pub fn live(self, live: bool) -> Self
pub fn result(self, result: DiscovererResult) -> Self
pub fn seekable(self, seekable: bool) -> Self
pub fn tags(self, tags: &TagList) -> Self
Sourcepub fn build(self) -> DiscovererInfo
pub fn build(self) -> DiscovererInfo
Trait Implementations§
Source§impl Debug for DiscovererInfoBuilder
impl Debug for DiscovererInfoBuilder
Source§impl Drop for DiscovererInfoBuilder
Available on crate feature v1_30 only.
impl Drop for DiscovererInfoBuilder
Available on crate feature
v1_30 only.Auto Trait Implementations§
impl !Send for DiscovererInfoBuilder
impl !Sync for DiscovererInfoBuilder
impl Freeze for DiscovererInfoBuilder
impl RefUnwindSafe for DiscovererInfoBuilder
impl Unpin for DiscovererInfoBuilder
impl UnsafeUnpin for DiscovererInfoBuilder
impl UnwindSafe for DiscovererInfoBuilder
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