pub enum EntityCoverageSerdeError {
LengthOverflow {
field: &'static str,
},
SerializeCoverage {
source: CoverageSerdeError,
},
InvalidMagic,
Truncated,
InvalidLength {
field: &'static str,
},
InvalidString {
source: Utf8Error,
},
UnknownValueType {
tag: u8,
},
InvalidIdentity {
source: EntityIdentityError,
},
DuplicateIdentity {
identity: EntityIdentity,
},
MalformedCoverage {
source: CoverageSerdeError,
},
TrailingBytes,
}Expand description
Errors from the distinct entity-aware coverage encoding.
Variants§
LengthOverflow
An in-memory length cannot be represented by the format.
SerializeCoverage
A nested bitmap could not be serialized.
Fields
§
source: CoverageSerdeErrorThe nested global coverage error.
InvalidMagic
The payload is not entity-aware coverage.
Truncated
A fixed-size field is incomplete.
InvalidLength
A declared count or length is not valid for the remaining payload.
InvalidString
An identity component is not valid UTF-8.
UnknownValueType
An identity component uses an unknown scalar type tag.
InvalidIdentity
An encoded identity is incomplete.
Fields
§
source: EntityIdentityErrorThe identity validation error.
DuplicateIdentity
The payload contains the same identity more than once.
Fields
§
identity: EntityIdentityThe repeated identity.
MalformedCoverage
A nested RoaringTreemap payload is malformed.
Fields
§
source: CoverageSerdeErrorThe nested global coverage error.
TrailingBytes
Bytes remain after the declared entity entries.
Trait Implementations§
Source§impl Debug for EntityCoverageSerdeError
impl Debug for EntityCoverageSerdeError
Source§impl Display for EntityCoverageSerdeError
impl Display for EntityCoverageSerdeError
Source§impl Error for EntityCoverageSerdeError
impl Error for EntityCoverageSerdeError
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 ErrorCompat for EntityCoverageSerdeError
impl ErrorCompat for EntityCoverageSerdeError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for EntityCoverageSerdeError
impl !UnwindSafe for EntityCoverageSerdeError
impl Freeze for EntityCoverageSerdeError
impl Send for EntityCoverageSerdeError
impl Sync for EntityCoverageSerdeError
impl Unpin for EntityCoverageSerdeError
impl UnsafeUnpin for EntityCoverageSerdeError
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)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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