Enum rodio::decoder::DecoderError
source · pub enum DecoderError {
UnrecognizedFormat,
IoError(String),
DecodeError(&'static str),
LimitError(&'static str),
ResetRequired,
NoStreams,
}
Expand description
Error that can happen when creating a decoder.
Variants§
UnrecognizedFormat
The format of the data has not been recognized.
IoError(String)
An IO error occurred while reading, writing, or seeking the stream.
DecodeError(&'static str)
The stream contained malformed data and could not be decoded or demuxed.
LimitError(&'static str)
A default or user-defined limit was reached while decoding or demuxing the stream. Limits are used to prevent denial-of-service attacks from malicious streams.
ResetRequired
The demuxer or decoder needs to be reset before continuing.
NoStreams
No streams were found by the decoder
Trait Implementations§
source§impl Clone for DecoderError
impl Clone for DecoderError
source§fn clone(&self) -> DecoderError
fn clone(&self) -> DecoderError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecoderError
impl Debug for DecoderError
source§impl Display for DecoderError
impl Display for DecoderError
source§impl Error for DecoderError
impl Error for DecoderError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<DecoderError> for PlayError
impl From<DecoderError> for PlayError
source§fn from(err: DecoderError) -> Self
fn from(err: DecoderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecoderError
impl RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl UnwindSafe for DecoderError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)