#[non_exhaustive]pub struct ApplyReport {
pub modified: usize,
pub actual_steps: i32,
pub clipping_prevented: bool,
pub clipping_detected: Option<ClippingDetection>,
pub saturated_low: usize,
pub saturated_high: usize,
pub gain_range: Option<(u8, u8)>,
}Expand description
Outcome of an apply_with_options call.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.modified: usizeMP3 frames or AAC gain fields actually modified.
actual_steps: i32Steps actually applied (= ApplyOptions::steps unless
ApplyOptions::prevent_clipping capped it, or unless steps==0).
clipping_prevented: boolTrue when actual_steps < requested_steps due to clipping
prevention.
clipping_detected: Option<ClippingDetection>Clipping diagnostic the caller can format into a warning when
prevent_clipping is off. None if no check ran (steps<=0 or
wrap mode).
saturated_low: usizeMP3 global_gain values that clamped at 0 (silence) during a
saturating apply, where the requested gain couldn’t be fully
applied (issue #207). Always 0 for wrap mode and for predict_apply.
saturated_high: usizeMP3 global_gain values that clamped at 255 (distortion) during a saturating apply (issue #207).
gain_range: Option<(u8, u8)>Post-apply (max, min) global_gain range across the modified MP3
frames, recorded during the apply pass so callers don’t need to
re-read the file (issue #231). None for AAC, channel-specific
applies, dry runs, and zero-frame applies.
Trait Implementations§
Source§impl Clone for ApplyReport
impl Clone for ApplyReport
Source§fn clone(&self) -> ApplyReport
fn clone(&self) -> ApplyReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ApplyReport
impl RefUnwindSafe for ApplyReport
impl Send for ApplyReport
impl Sync for ApplyReport
impl Unpin for ApplyReport
impl UnsafeUnpin for ApplyReport
impl UnwindSafe for ApplyReport
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
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> ⓘ
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> ⓘ
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