Enum lewton::audio::AudioReadError
source · 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§
source§impl Debug for AudioReadError
impl Debug for AudioReadError
source§impl Display for AudioReadError
impl Display for AudioReadError
source§impl Error for AudioReadError
impl Error for AudioReadError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl From<()> for AudioReadError
impl From<()> for AudioReadError
source§fn from(_: ()) -> AudioReadError
fn from(_: ()) -> AudioReadError
Converts to this type from the input type.
source§impl From<AudioReadError> for VorbisError
impl From<AudioReadError> for VorbisError
source§fn from(err: AudioReadError) -> VorbisError
fn from(err: AudioReadError) -> VorbisError
Converts to this type from the input type.