pub struct CoverageGateError(/* private fields */);Expand description
Top-level error returned from every fallible function in the
cargo-coverage-gate library.
Carries no free-form fields — the specific cause is encoded in the
chained source error (see the From impls). Callers surface the
message verbatim through their own diagnostic surface; the
Display rendering includes the chained source as Caused by: …
automatically.
Trait Implementations§
Source§impl Debug for CoverageGateError
impl Debug for CoverageGateError
Source§impl Display for CoverageGateError
impl Display for CoverageGateError
Source§impl Enrichable for CoverageGateError
impl Enrichable for CoverageGateError
Source§fn add_enrichment(&mut self, entry: EnrichmentEntry)
fn add_enrichment(&mut self, entry: EnrichmentEntry)
Adds enrichment information to the error. Read more
Source§impl Error for CoverageGateError
impl Error for CoverageGateError
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 ErrorExt for CoverageGateError
impl ErrorExt for CoverageGateError
Source§impl From<!> for CoverageGateError
impl From<!> for CoverageGateError
Source§fn from(_value: Infallible) -> Self
fn from(_value: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CoverageGateError
impl !UnwindSafe for CoverageGateError
impl Freeze for CoverageGateError
impl Send for CoverageGateError
impl Sync for CoverageGateError
impl Unpin for CoverageGateError
impl UnsafeUnpin for CoverageGateError
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