pub enum CodecError {
Show 18 variants
Io(Error),
FieldResolution(FieldResolutionError),
FieldValue(FieldValueError),
MissingBitWidth {
field_name: &'static str,
},
InvalidBitWidth {
field_name: &'static str,
bit_width: u32,
},
InvalidLength {
field_name: &'static str,
expected: usize,
actual: usize,
},
NumericOverflow {
field_name: &'static str,
bit_width: u32,
},
ConstantMismatch {
field_name: &'static str,
constant: &'static str,
},
InvalidConstant {
field_name: &'static str,
constant: &'static str,
},
UnsupportedVarintWidth {
field_name: &'static str,
},
VarintOverflow {
field_name: &'static str,
value: u64,
},
UnsupportedVersion {
box_type: FourCc,
version: u8,
},
UnknownBoxType {
box_type: FourCc,
},
InvalidUtf8 {
field_name: &'static str,
},
InvalidUnboundedLength {
field_name: &'static str,
bit_width: u32,
remaining_bits: u64,
},
UnsupportedFixedLengthString {
field_name: &'static str,
},
InvalidBoxAlignment {
box_type: FourCc,
bit_count: u64,
},
Overrun {
box_type: FourCc,
payload_size: u64,
bit_count: u64,
},
}Expand description
Errors raised while encoding or decoding descriptor-backed boxes.
Variants§
Io(Error)
FieldResolution(FieldResolutionError)
FieldValue(FieldValueError)
MissingBitWidth
InvalidBitWidth
InvalidLength
NumericOverflow
ConstantMismatch
InvalidConstant
UnsupportedVarintWidth
VarintOverflow
UnsupportedVersion
UnknownBoxType
InvalidUtf8
InvalidUnboundedLength
UnsupportedFixedLengthString
InvalidBoxAlignment
Overrun
Trait Implementations§
Source§impl Debug for CodecError
impl Debug for CodecError
Source§impl Display for CodecError
impl Display for CodecError
Source§impl Error for CodecError
impl Error for CodecError
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<CodecError> for EditError
impl From<CodecError> for EditError
Source§fn from(value: CodecError) -> Self
fn from(value: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for ExtractError
impl From<CodecError> for ExtractError
Source§fn from(value: CodecError) -> Self
fn from(value: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for MuxError
Available on crate feature mux only.
impl From<CodecError> for MuxError
Available on crate feature
mux only.Source§fn from(error: CodecError) -> Self
fn from(error: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for ProbeError
impl From<CodecError> for ProbeError
Source§fn from(value: CodecError) -> Self
fn from(value: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for RewriteError
impl From<CodecError> for RewriteError
Source§fn from(value: CodecError) -> Self
fn from(value: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for SidxAnalysisError
impl From<CodecError> for SidxAnalysisError
Source§fn from(value: CodecError) -> Self
fn from(value: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for SidxPlanError
impl From<CodecError> for SidxPlanError
Source§fn from(value: CodecError) -> Self
fn from(value: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for SidxRewriteError
impl From<CodecError> for SidxRewriteError
Source§fn from(value: CodecError) -> Self
fn from(value: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for WalkError
impl From<CodecError> for WalkError
Source§fn from(value: CodecError) -> Self
fn from(value: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CodecError
impl From<Error> for CodecError
Source§impl From<FieldResolutionError> for CodecError
impl From<FieldResolutionError> for CodecError
Source§fn from(error: FieldResolutionError) -> Self
fn from(error: FieldResolutionError) -> Self
Converts to this type from the input type.
Source§impl From<FieldValueError> for CodecError
impl From<FieldValueError> for CodecError
Source§fn from(error: FieldValueError) -> Self
fn from(error: FieldValueError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodecError
impl !RefUnwindSafe for CodecError
impl Send for CodecError
impl Sync for CodecError
impl Unpin for CodecError
impl UnsafeUnpin for CodecError
impl !UnwindSafe for CodecError
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