Enum flac::ErrorKind [] [src]

pub enum ErrorKind {
    IO(ErrorKind),
    Incomplete(usize),
    Continue,
    EndOfInput,
    Unknown,
    HeaderParser,
    MetadataHeaderParser,
    StreamInfoParser,
    PaddingParser,
    ApplicationParser,
    SeekTableParser,
    VorbisCommentParser,
    CueSheetParser,
    PictureParser,
    UnknownParser,
    BlockingStrategyParser,
    BlockingSampleParser,
    ChannelBitsParser,
    UTF8HeaderParser,
    UTF8BodyParser,
    BlockSizeParser,
    SampleRateParser,
    CRC8Parser,
    FrameFooterParser,
    SubframeHeaderParser,
    LeadingZerosParser,
    ConstantParser,
    VerbatimParser,
    FixedParser,
    LPCParser,
    InvalidBlockType,
    InvalidSyncCode,
    InvalidBlockSample,
    InvalidChannelBits,
    InvalidUTF8,
    InvalidCRC8,
    InvalidCRC16,
    InvalidSubframeHeader,
    NotFound,
}

Represent the different kinds of errors.

Variants

Error from I/O.

A parser stopped midway and need more bytes to consume.

A parser has completes and there is still more bytes to consume.

A parser has completes and there is no more bytes to consume.

A non-specified error.

Failed parsing the "fLaC" header token.

Failed parsing a metadata header.

Failed parsing the metadata block StreamInfo.

Failed parsing the metadata block Padding.

Failed parsing the metadata block Application.

Failed parsing the metadata block SeekTable.

Failed parsing the metadata block VorbisComment.

Failed parsing the metadata block CueSheet.

Failed parsing the metadata block Picture.

Failed parsing the metadata block Unknown.

Failed parsing the blocking strategy inside the frame header.

Failed parsing the blocking sample inside the frame header.

Failed parsing the channel bits inside the frame header.

Failed parsing the UTF-8 header inside the frame header.

Failed parsing the UTF-8 body inside the frame header.

Failed parsing the secondary block size inside the frame header.

Failed parsing the secondary sample rate inside the frame header.

Failed parsing the CRC-8 inside the frame header.

Failed parsing the frame footer, also known as the CRC-16.

Failed parsing the subframe header.

Failed parsing the leading zero for a unary value.

Failed parsing a Constant subframe data.

Failed parsing a Verbatim subframe data.

Failed parsing a Fixed subframe data.

Failed parsing a LPC subframe data.

A block type, base on the number, that is outside the range (0-126).

An incorrect sync code with the frame header.

A block sample that could cause sync-fooling.

One or more bits are reserved values.

An error occurred in building the UTF-8 value.

The stored CRC-8 doesn't match the one generated from the bytes within the frame header.

The stored CRC-16 doesn't match the one generated from the bytes within the entire frame.

A subframe header that could cause sync-fooling.

Some metadata block was not found with a specific filter.

Trait Implementations

impl Copy for ErrorKind
[src]

impl Clone for ErrorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ErrorKind
[src]

Formats the value using the given formatter.

impl Eq for ErrorKind
[src]

impl PartialEq for ErrorKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.