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

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

Variants

EndOfPacketAudioBadFormatAudioIsHeaderBufferNotAddressable

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 From<()> for AudioReadError[src]

impl From<AudioReadError> for VorbisError[src]

impl Eq for AudioReadError[src]

impl PartialEq<AudioReadError> for AudioReadError[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Display for AudioReadError[src]

impl Debug for AudioReadError[src]

impl Error for AudioReadError[src]

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]