pub enum TranscodeContractError {
OverRead {
read: usize,
available: usize,
},
OverWritten {
written: usize,
available: usize,
},
ProgressIndexOverflow {
index: usize,
advanced: usize,
},
StatusIndexMismatch {
reported: usize,
expected: usize,
},
SatisfiedNeed {
required: usize,
available: usize,
},
}Expand description
Error reported when a transcoder returns inconsistent progress.
This error represents a broken crate::Transcoder implementation rather
than malformed input data. Buffered drivers call
crate::TranscodeProgress::validate before trusting progress counters for
unchecked buffer cursor movement.
Variants§
OverRead
The transcoder consumed more input units than the caller supplied.
Fields
OverWritten
The transcoder wrote more output units than the caller supplied.
Fields
ProgressIndexOverflow
Progress could not be represented as an absolute index.
Fields
StatusIndexMismatch
A status reported an index that does not match relative progress.
Fields
SatisfiedNeed
A status requested input or output that is already available.
Trait Implementations§
Source§impl Clone for TranscodeContractError
impl Clone for TranscodeContractError
Source§fn clone(&self) -> TranscodeContractError
fn clone(&self) -> TranscodeContractError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TranscodeContractError
Source§impl Debug for TranscodeContractError
impl Debug for TranscodeContractError
Source§impl Display for TranscodeContractError
impl Display for TranscodeContractError
impl Eq for TranscodeContractError
Source§impl Error for TranscodeContractError
impl Error for TranscodeContractError
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()
Source§impl Hash for TranscodeContractError
impl Hash for TranscodeContractError
Source§impl PartialEq for TranscodeContractError
impl PartialEq for TranscodeContractError
Source§fn eq(&self, other: &TranscodeContractError) -> bool
fn eq(&self, other: &TranscodeContractError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TranscodeContractError
Auto Trait Implementations§
impl Freeze for TranscodeContractError
impl RefUnwindSafe for TranscodeContractError
impl Send for TranscodeContractError
impl Sync for TranscodeContractError
impl Unpin for TranscodeContractError
impl UnsafeUnpin for TranscodeContractError
impl UnwindSafe for TranscodeContractError
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