pub enum OggError {
UnsupportedVersion(u8),
ParsingError(ErrorKind),
EndOfStreamError(Option<NonZeroUsize>),
InvalidStream(ErrorValues),
UnsupportedStream(&'static str),
NotOggStream,
BufferTooSmallError(usize, usize),
}Expand description
Error from parsing ogg container.
Variants§
UnsupportedVersion(u8)
Unsupported ogg version.
ParsingError(ErrorKind)
Parsing error from nom library.
EndOfStreamError(Option<NonZeroUsize>)
Stream ended abruptly.
InvalidStream(ErrorValues)
Stream did not validate as ogg stream.
UnsupportedStream(&'static str)
Stream is not supported, e.g. it contains a grouped stream.
NotOggStream
Stream is not ogg stream.
BufferTooSmallError(usize, usize)
Buffer was too small to contain packet.
Contains size of the buffer and how many bytes would have been actually needed.
Trait Implementations§
Source§impl Error for OggError
impl Error for OggError
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.
impl StructuralPartialEq for OggError
Auto Trait Implementations§
impl Freeze for OggError
impl RefUnwindSafe for OggError
impl Send for OggError
impl Sync for OggError
impl Unpin for OggError
impl UnwindSafe for OggError
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