pub struct OpusConfig { /* private fields */ }Expand description
Opus audio codec configuration.
Implementations§
Source§impl OpusConfig
impl OpusConfig
Sourcepub fn application(self, app: OpusApplication) -> Self
pub fn application(self, app: OpusApplication) -> Self
Sets the application type.
Sourcepub fn complexity(self, complexity: u8) -> Self
pub fn complexity(self, complexity: u8) -> Self
Sets the complexity (0-10).
Sourcepub fn frame_duration(self, duration_ms: f32) -> Self
pub fn frame_duration(self, duration_ms: f32) -> Self
Sets the frame duration in milliseconds.
Sourcepub fn build(self) -> CodecConfig
pub fn build(self) -> CodecConfig
Converts to base codec config.
Trait Implementations§
Source§impl Clone for OpusConfig
impl Clone for OpusConfig
Source§fn clone(&self) -> OpusConfig
fn clone(&self) -> OpusConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpusConfig
impl Debug for OpusConfig
Auto Trait Implementations§
impl Freeze for OpusConfig
impl RefUnwindSafe for OpusConfig
impl Send for OpusConfig
impl Sync for OpusConfig
impl Unpin for OpusConfig
impl UnsafeUnpin for OpusConfig
impl UnwindSafe for OpusConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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