Enum mpeg2ts_reader::descriptor::DescriptorError [−][src]
pub enum DescriptorError { NotEnoughData { tag: u8, actual: usize, expected: usize, }, TagTooLongForBuffer { taglen: usize, buflen: usize, }, BufferTooShort { buflen: usize, }, UnhandledTagValue(u8), }
An error during parsing of a descriptor
Variants
The amount of data available in the buffer is not enough to hold the descriptor’s declared size.
Fields of NotEnoughData
TODO: replace with NotEnoughData
Fields of TagTooLongForBuffer
The buffer is too short to even hold the two bytes of generic descriptor header data
Fields of BufferTooShort
buflen: usize
the actual buffer length
UnhandledTagValue(u8)
There is no mapping defined of the given descriptor tag value to a Descriptor
value.
Trait Implementations
impl Debug for DescriptorError
[src]
impl PartialEq<DescriptorError> for DescriptorError
[src]
fn eq(&self, other: &DescriptorError) -> bool
[src]
fn ne(&self, other: &DescriptorError) -> bool
[src]
impl StructuralPartialEq for DescriptorError
[src]
Auto Trait Implementations
impl RefUnwindSafe for DescriptorError
impl Send for DescriptorError
impl Sync for DescriptorError
impl Unpin for DescriptorError
impl UnwindSafe for DescriptorError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,