Enum lewton::audio::AudioReadError [] [src]

pub enum AudioReadError {
    EndOfPacket,
    AudioBadFormat,
    AudioIsHeader,
    BufferNotAddressable,
}

Variants

If the needed memory isn't addressable by us

This error is returned if a calculation yielded a higher value for an internal buffer size that doesn't fit into the platform's address range. Note that if we "simply" encounter an allocation failure (OOM, etc), we do what libstd does in these cases: crash.

This error is not automatically an error of the format, but rather is due to insufficient decoder hardware.

Trait Implementations

impl Debug for AudioReadError
[src]

Formats the value using the given formatter.

impl PartialEq for AudioReadError
[src]

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

This method tests for !=.

impl From<()> for AudioReadError
[src]

Performs the conversion.

impl Error for AudioReadError
[src]

A short description of the error. Read more

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

impl Display for AudioReadError
[src]

Formats the value using the given formatter. Read more