[][src]Struct puremp3::FrameHeader

pub struct FrameHeader {
    pub version: MpegVersion,
    pub layer: MpegLayer,
    pub crc: bool,
    pub bitrate: BitRate,
    pub sample_rate: SampleRate,
    pub padding: bool,
    pub channels: Channels,
    pub copyright: bool,
    pub original: bool,
    pub emphasis: Emphasis,
    // some fields omitted
}

Header of an MP3 frame.

Contains info about the format of the audio samples.

Fields

version: MpegVersion

The MPEG standard used in encoding this frame.

layer: MpegLayer

The MPEG layer of the frame.

Currently only MPEG Layer III is supported.

crc: bool

Whether the frame contains a CRC checksum.

bitrate: BitRate

The bitrate of this frame.

sample_rate: SampleRate

The sample rate of this frame.

padding: bool

Whether the frame has an extra padding bit.

channels: Channels

The channel mode of this frame.

copyright: bool

Whether this frame is under copyright.

original: bool

Whether this frame contains original data or a copy.

emphasis: Emphasis

The emphasis of this frame.

Trait Implementations

impl Clone for FrameHeader[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for FrameHeader[src]

Auto Trait Implementations

impl Send for FrameHeader

impl Sync for FrameHeader

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]