Struct windows_capture::encoder::AudioSettingBuilder
source · pub struct AudioSettingBuilder { /* private fields */ }Expand description
The AudioSettingsSubType enum represents the settings for the audio encoder.
Implementations§
source§impl AudioSettingBuilder
impl AudioSettingBuilder
pub const fn new() -> Self
pub const fn bitrate(self, bitrate: u32) -> Self
pub const fn channel_count(self, channel_count: u32) -> Self
pub const fn sample_rate(self, sample_rate: u32) -> Self
pub const fn bit_per_sample(self, bit_per_sample: u32) -> Self
pub const fn sub_type(self, sub_type: AudioSettingsSubType) -> Self
pub const fn disabled(self, disabled: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioSettingBuilder
impl RefUnwindSafe for AudioSettingBuilder
impl Send for AudioSettingBuilder
impl Sync for AudioSettingBuilder
impl Unpin for AudioSettingBuilder
impl UnwindSafe for AudioSettingBuilder
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