pub enum BitstreamError {
OggError(OggError),
OpusError(OpusError),
InvalidOggStream(ErrorValues),
InvalidOpusStream(&'static str),
UnsupportedOpusVersion(u8),
UnsupportedStream(&'static str),
NotOpusStream,
}Expand description
Error from parsing bitstream.
Variants§
OggError(OggError)
Error from parsing ogg container.
OpusError(OpusError)
Error from parsing opus data within ogg container.
InvalidOggStream(ErrorValues)
Invalid ogg stream encountered.
InvalidOpusStream(&'static str)
Invalid opus stream encountered.
UnsupportedOpusVersion(u8)
Unsupported opus version encountered. Indicates requested version.
UnsupportedStream(&'static str)
Unsupported ogg opus stream encountered. Enabled features may affect this.
See also OpusError::UnsupportedStream
and OggError::UnsupportedStream.
NotOpusStream
Stream is not an opus stream but something else.
See also OpusError::NotOpusStream.
Trait Implementations§
Source§impl Debug for BitstreamError
impl Debug for BitstreamError
Source§impl Display for BitstreamError
impl Display for BitstreamError
Source§impl Error for BitstreamError
impl Error for BitstreamError
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<OggError> for BitstreamError
impl From<OggError> for BitstreamError
Source§fn from(error: OggError) -> BitstreamError
fn from(error: OggError) -> BitstreamError
Converts to this type from the input type.
Source§impl From<OpusError> for BitstreamError
impl From<OpusError> for BitstreamError
Source§fn from(error: OpusError) -> BitstreamError
fn from(error: OpusError) -> BitstreamError
Converts to this type from the input type.
Source§impl PartialEq for BitstreamError
impl PartialEq for BitstreamError
Source§fn eq(&self, other: &BitstreamError) -> bool
fn eq(&self, other: &BitstreamError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BitstreamError
Auto Trait Implementations§
impl Freeze for BitstreamError
impl RefUnwindSafe for BitstreamError
impl Send for BitstreamError
impl Sync for BitstreamError
impl Unpin for BitstreamError
impl UnsafeUnpin for BitstreamError
impl UnwindSafe for BitstreamError
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