Enum lewton::audio::AudioReadError
[−]
[src]
pub enum AudioReadError { EndOfPacket, AudioBadFormat, AudioIsHeader, BufferNotAddressable, }
Variants
EndOfPacket
AudioBadFormat
AudioIsHeader
BufferNotAddressable
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]
impl PartialEq for AudioReadError
[src]
fn eq(&self, __arg_0: &AudioReadError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl From<()> for AudioReadError
[src]
fn from(_: ()) -> AudioReadError
Performs the conversion.
impl Error for AudioReadError
[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