#[non_exhaustive]pub enum ExecuteSequencesError {
DecodebufferError(DecodeBufferError),
NotEnoughBytesForSequence {
wanted: usize,
have: usize,
},
ZeroOffset,
OutputBufferOverflow {
tail: usize,
requested: usize,
capacity: usize,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DecodebufferError(DecodeBufferError)
NotEnoughBytesForSequence
ZeroOffset
OutputBufferOverflow
An inline sequence (exec_sequence_inline) would have written past
the writable tail of the output buffer. Raised by every capacity-bounded
backend that runs the inline executor (the fixed-capacity user slice and
the pre-reserved flat buffer alike). Indicates the frame is corrupt: its
sequences expand past the declared frame_content_size plus the
caller-supplied WILDCOPY_OVERLENGTH slack. The fast-path check is
per-sequence; the post-block FCS overflow check would also catch the
same shape, but the per-sequence guard is what keeps the unsafe write
surface inside the buffer on the way to the post-block check.
Trait Implementations§
Source§impl Debug for ExecuteSequencesError
impl Debug for ExecuteSequencesError
Source§impl Display for ExecuteSequencesError
impl Display for ExecuteSequencesError
Source§impl Error for ExecuteSequencesError
Available on crate feature std only.
impl Error for ExecuteSequencesError
Available on crate feature
std only.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<DecodeBufferError> for ExecuteSequencesError
impl From<DecodeBufferError> for ExecuteSequencesError
Source§fn from(val: DecodeBufferError) -> Self
fn from(val: DecodeBufferError) -> Self
Converts to this type from the input type.
Source§impl From<ExecuteSequencesError> for DecompressBlockError
impl From<ExecuteSequencesError> for DecompressBlockError
Source§fn from(val: ExecuteSequencesError) -> Self
fn from(val: ExecuteSequencesError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecuteSequencesError
impl RefUnwindSafe for ExecuteSequencesError
impl Send for ExecuteSequencesError
impl Sync for ExecuteSequencesError
impl Unpin for ExecuteSequencesError
impl UnsafeUnpin for ExecuteSequencesError
impl UnwindSafe for ExecuteSequencesError
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