#[non_exhaustive]pub enum CoverageCodecError {
BitmapSerialization {
source: Error,
backtrace: Backtrace,
},
BitmapDeserialization {
source: Error,
backtrace: Backtrace,
},
LengthOverflow {
field: &'static str,
backtrace: Backtrace,
},
InvalidEntityCoverageMagic {
backtrace: Backtrace,
},
TruncatedPayload {
backtrace: Backtrace,
},
InvalidLength {
field: &'static str,
backtrace: Backtrace,
},
InvalidEntityUtf8 {
source: Utf8Error,
backtrace: Backtrace,
},
UnknownEntityValueTag {
tag: u8,
backtrace: Backtrace,
},
InvalidEntityIdentity {
source: EntityIdentityError,
backtrace: Backtrace,
},
DuplicateEntityIdentity {
identity: EntityIdentity,
backtrace: Backtrace,
},
MalformedNestedCoverage {
source: Box<CoverageCodecError>,
},
TrailingBytes {
backtrace: Backtrace,
},
}Expand description
Errors from the global and entity-aware coverage codecs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BitmapSerialization
I/O error during serialization of a coverage bitmap.
Fields
BitmapDeserialization
I/O error during deserialization of a coverage bitmap.
Fields
LengthOverflow
An in-memory length cannot be represented by the format.
Fields
InvalidEntityCoverageMagic
The payload is not entity-aware coverage.
TruncatedPayload
A fixed-size field is incomplete.
InvalidLength
A declared count or length is not valid for the remaining payload.
Fields
InvalidEntityUtf8
An identity component is not valid UTF-8.
Fields
UnknownEntityValueTag
An identity component uses an unknown scalar type tag.
Fields
InvalidEntityIdentity
An encoded identity is incomplete.
Fields
source: EntityIdentityErrorThe identity validation error.
DuplicateEntityIdentity
The payload contains the same identity more than once.
Fields
identity: EntityIdentityThe repeated identity.
MalformedNestedCoverage
A nested RoaringTreemap payload is malformed.
Fields
source: Box<CoverageCodecError>The nested global coverage error.
TrailingBytes
Bytes remain after the declared coverage payload.
Trait Implementations§
Source§impl Debug for CoverageCodecError
impl Debug for CoverageCodecError
Source§impl Display for CoverageCodecError
impl Display for CoverageCodecError
Source§impl Error for CoverageCodecError
impl Error for CoverageCodecError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl ErrorCompat for CoverageCodecError
impl ErrorCompat for CoverageCodecError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Error::source. Read moreSource§impl From<CoverageCodecError> for CoverageSidecarError
impl From<CoverageCodecError> for CoverageSidecarError
Source§fn from(error: CoverageCodecError) -> Self
fn from(error: CoverageCodecError) -> Self
Auto Trait Implementations§
impl !Freeze for CoverageCodecError
impl !RefUnwindSafe for CoverageCodecError
impl !UnwindSafe for CoverageCodecError
impl Send for CoverageCodecError
impl Sync for CoverageCodecError
impl Unpin for CoverageCodecError
impl UnsafeUnpin for CoverageCodecError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more