pub struct DecoderOptions {
pub format: Option<AudioFormat>,
pub limits: Limits,
pub chunk_frames: usize,
}Expand description
Options for Decoder.
Fields§
§format: Option<AudioFormat>The input’s format, or None to detect it from the bytes.
limits: LimitsThe limits of whole decoding, checked against the declared stream when it
opens. max_decoded_bytes also bounds the decoder’s own buffers.
chunk_frames: usizeMost frames that Decoder::next_chunk returns at once. Default 4096.
Trait Implementations§
Source§impl Clone for DecoderOptions
impl Clone for DecoderOptions
Source§fn clone(&self) -> DecoderOptions
fn clone(&self) -> DecoderOptions
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 moreSource§impl Debug for DecoderOptions
impl Debug for DecoderOptions
Auto Trait Implementations§
impl Freeze for DecoderOptions
impl RefUnwindSafe for DecoderOptions
impl Send for DecoderOptions
impl Sync for DecoderOptions
impl Unpin for DecoderOptions
impl UnsafeUnpin for DecoderOptions
impl UnwindSafe for DecoderOptions
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