Enum gonk_player::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 occured 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
sourceimpl Clone for DecoderError
impl Clone for DecoderError
sourcefn clone(&self) -> DecoderError
fn clone(&self) -> DecoderError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DecoderError
impl Debug for DecoderError
sourceimpl Display for DecoderError
impl Display for DecoderError
sourceimpl Error for DecoderError
impl Error for DecoderError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DecoderError> for PlayError
impl From<DecoderError> for PlayError
sourcefn from(err: DecoderError) -> Self
fn from(err: DecoderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl UnwindSafe for DecoderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
fn into_sample(self) -> T
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more