#[non_exhaustive]pub struct Encoder {
pub block_size: usize,
pub multithread: bool,
pub workers: Option<NonZeroUsize>,
pub stereo_coding: StereoCoding,
pub subframe_coding: SubFrameCoding,
}Expand description
Configuration for encoder.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.block_size: usizeEncoder block size. (default: constant::DEFAULT_BLOCK_SIZE)
multithread: boolWhether encoder runs on multi-thread mode. (default: true when "par" feature is used)
workers: Option<NonZeroUsize>The number of threads used in multithread mode. (default: None)
If None, the number of workers is set to be identical with the number of the logical CPU cores in the running environment.
stereo_coding: StereoCodingConfiguration for stereo-coding module.
subframe_coding: SubFrameCodingConfiguration for individual channels.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Encoder
impl<'de> Deserialize<'de> for Encoder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Verify for Encoder
impl Verify for Encoder
Source§fn verify(&self) -> Result<(), VerifyError>
fn verify(&self) -> Result<(), VerifyError>
Verifies there’s no internal data inconsistency. Read more
Source§fn into_verified(self) -> Result<Verified<Self>, (Self, VerifyError)>
fn into_verified(self) -> Result<Verified<Self>, (Self, VerifyError)>
Wraps into
Verified to indicate that the data is already verified. Read moreSource§unsafe fn assume_verified(self) -> Verified<Self>
unsafe fn assume_verified(self) -> Verified<Self>
Wraps into
Verified without actual verification. Read moreAuto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)