Skip to main content

CarriesBug

Trait CarriesBug 

Source
pub trait CarriesBug {
    // Required method
    fn bug(&self) -> Option<&Bug>;
}
Expand description

An error that may carry a bug: work its call ran panicked, and the call’s error says so. Work nobody waits for reports the bug its error carries, as it reports its own panic.

Required Methods§

Source

fn bug(&self) -> Option<&Bug>

The bug this error carries, itself or through the failure it keeps.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CarriesBug for !

An error that can’t happen carries no bug.

Source§

fn bug(&self) -> Option<&Bug>

Source§

impl CarriesBug for Error

An I/O error carries the bug it was made from, if any.

Source§

fn bug(&self) -> Option<&Bug>

Source§

impl CarriesBug for ExportStopped

Source§

fn bug(&self) -> Option<&Bug>

Source§

impl CarriesBug for LocalFileError

Source§

fn bug(&self) -> Option<&Bug>

Source§

impl CarriesBug for OpenError

Source§

fn bug(&self) -> Option<&Bug>

Source§

impl<E> CarriesBug for SnapshotWriteError<E>
where E: CarriesBug,

Source§

fn bug(&self) -> Option<&Bug>

Source§

impl<E> CarriesBug for UploadReadError<E>
where E: CarriesBug,

Available on crate features test-utils only.
Source§

fn bug(&self) -> Option<&Bug>

Implementors§