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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.