Struct Discoverer Audio Info Builder
Source pub struct DiscovererAudioInfoBuilder(/* private fields */);Expand description
Opaque structure for building DiscovererAudioInfo objects programmatically.
Implementations§
Source§impl DiscovererAudioInfoBuilder
impl DiscovererAudioInfoBuilder
Sourcepub fn new(stream_id: &str, caps: &Caps) -> Self
pub fn new(stream_id: &str, caps: &Caps) -> Self
Creates a new DiscovererAudioInfoBuilder.
Audio properties (channels, sample_rate, depth) will be extracted from caps.
§stream_id
the stream ID
§caps
the audio caps
§Returns
pub fn bitrate(self, bitrate: u32) -> Self
pub fn max_bitrate(self, max_bitrate: u32) -> Self
pub fn language(self, language: &str) -> Self
pub fn tags(self, tags: &TagList) -> Self
Sourcepub fn build(self) -> DiscovererAudioInfo
pub fn build(self) -> DiscovererAudioInfo
Builds and returns a new DiscovererAudioInfo. This frees the builder.
§Returns
a new DiscovererAudioInfo
Trait Implementations§
Source§impl Debug for DiscovererAudioInfoBuilder
impl Debug for DiscovererAudioInfoBuilder
Source§impl Drop for DiscovererAudioInfoBuilder
Available on crate feature v1_30 only.
impl Drop for DiscovererAudioInfoBuilder
Available on crate feature
v1_30 only.Auto Trait Implementations§
impl !Send for DiscovererAudioInfoBuilder
impl !Sync for DiscovererAudioInfoBuilder
impl Freeze for DiscovererAudioInfoBuilder
impl RefUnwindSafe for DiscovererAudioInfoBuilder
impl Unpin for DiscovererAudioInfoBuilder
impl UnsafeUnpin for DiscovererAudioInfoBuilder
impl UnwindSafe for DiscovererAudioInfoBuilder
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