Enum ogg::OggReadError [] [src]

pub enum OggReadError {
    NoCapturePatternFound,
    InvalidStreamStructVer(u8),
    HashMismatch(u32u32),
    ReadError(Error),
    InvalidData,
}

Error that can be raised when decoding an Ogg transport.

Variants

NoCapturePatternFound

The capture pattern for a new page was not found where one was expected.

InvalidStreamStructVer(u8)

Invalid stream structure version, with the given one attached.

HashMismatch(u32u32)

Mismatch of the hash value with (expected, calculated) value.

ReadError(Error)

I/O error occured.

InvalidData

Some constraint required by the spec was not met.

Trait Implementations

impl Debug for OggReadError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for OggReadError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more

impl Display for OggReadError
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl From<Error> for OggReadError
[src]

fn from(err: Error) -> OggReadError

Performs the conversion.