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
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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.
source§impl PartialEq for AudioReadError
impl PartialEq for AudioReadError
source§fn eq(&self, other: &AudioReadError) -> bool
fn eq(&self, other: &AudioReadError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AudioReadError
impl StructuralEq for AudioReadError
impl StructuralPartialEq for AudioReadError
Auto Trait Implementations§
impl RefUnwindSafe for AudioReadError
impl Send for AudioReadError
impl Sync for AudioReadError
impl Unpin for AudioReadError
impl UnwindSafe for AudioReadError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more