pub struct Limits {
pub max_decoded_bytes: usize,
pub max_duration_seconds: f64,
pub max_channels: usize,
pub min_sample_rate: u32,
pub max_sample_rate: u32,
pub max_frames: usize,
}Expand description
Allocation and duration limits checked before allocating decoded PCM.
Fields§
§max_decoded_bytes: usize§max_duration_seconds: f64§max_channels: usize§min_sample_rate: u32§max_sample_rate: u32§max_frames: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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