pub enum ParseMode {
PreferVbrHeaders,
IgnoreVbrHeaders,
}
Expand description
Parse mode
Controls which sources are considered when parsing metadata.
Variants§
PreferVbrHeaders
Parse from first VBR header
If present return the metadata contained in the first valid XING/VBRI header and abort reading. Otherwise continue reading and aggregate the metadata from all MPEG audio frames.
This method is faster but might result in less accurate results if the information in the VBR headers does not match the data in the MPEG audio frames.
IgnoreVbrHeaders
Skip and ignore all VBR headers
Skip over the XING/VBRI headers and aggregate the metadata from all MPEG audio frames instead.
This method is slower but may provide more accurate results depending on how and when the redundant information in the VBR headers has been calculated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseMode
impl RefUnwindSafe for ParseMode
impl Send for ParseMode
impl Sync for ParseMode
impl Unpin for ParseMode
impl UnwindSafe for ParseMode
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