pub enum VpsError {
Truncated,
ReservedFieldMismatch {
got: u16,
},
ValueOutOfRange {
field: &'static str,
got: u32,
},
Bitstream(BitReaderError),
Hrd(HrdError),
}Expand description
Errors that can arise while parsing a VPS RBSP.
Variants§
Truncated
The RBSP ran out of bits before the VPS was fully parsed.
ReservedFieldMismatch
vps_reserved_0xffff_16bits was not 0xFFFF. §7.4.3.1
mandates the literal value.
ValueOutOfRange
An Exp-Golomb code’s codeNum exceeded what the corresponding
syntax element can legally hold.
Bitstream(BitReaderError)
An unexpected bitstream-level error surfaced from the reader.
Hrd(HrdError)
An hrd_parameters() body inside the VPS HRD loop was malformed.
Propagated up from crate::hrd::HrdError so a caller that
only looks at VpsError still sees the failure.
Trait Implementations§
impl Copy for VpsError
impl Eq for VpsError
Source§impl Error for VpsError
impl Error for VpsError
1.30.0 · 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()
impl StructuralPartialEq for VpsError
Auto Trait Implementations§
impl Freeze for VpsError
impl RefUnwindSafe for VpsError
impl Send for VpsError
impl Sync for VpsError
impl Unpin for VpsError
impl UnsafeUnpin for VpsError
impl UnwindSafe for VpsError
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