#[non_exhaustive]pub struct AudioDecoderOptions {
pub gapless: bool,
pub verify: bool,
}Expand description
AudioDecoderOptions is a common set of options that all audio decoders use.
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.gapless: boolEnable support for gapless playback.
When enabled, the decoder will trim any delay or padding frames.
Default: true.
verify: boolThe decoded audio should be verified if possible during the decode process.
Default: false.
Implementations§
Trait Implementations§
Source§impl Clone for AudioDecoderOptions
impl Clone for AudioDecoderOptions
Source§fn clone(&self) -> AudioDecoderOptions
fn clone(&self) -> AudioDecoderOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AudioDecoderOptions
Source§impl Debug for AudioDecoderOptions
impl Debug for AudioDecoderOptions
Auto Trait Implementations§
impl Freeze for AudioDecoderOptions
impl RefUnwindSafe for AudioDecoderOptions
impl Send for AudioDecoderOptions
impl Sync for AudioDecoderOptions
impl Unpin for AudioDecoderOptions
impl UnsafeUnpin for AudioDecoderOptions
impl UnwindSafe for AudioDecoderOptions
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