pub enum AdtsHeaderError {
BadSyncWord(u16),
NotEnoughData {
expected: usize,
actual: usize,
},
BadFrameLength {
minimum: usize,
actual: usize,
},
}Variants§
BadSyncWord(u16)
Indicates that the given buffer did not start with the required sequence of 12 ‘1’-bits
(0xfff).
NotEnoughData
BadFrameLength
The frame_length field stored in the ADTS header is invalid as it holds a value smaller than the size of the header fields
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdtsHeaderError
impl RefUnwindSafe for AdtsHeaderError
impl Send for AdtsHeaderError
impl Sync for AdtsHeaderError
impl Unpin for AdtsHeaderError
impl UnwindSafe for AdtsHeaderError
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