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§
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 Error
An I/O error carries the bug it was made from, if any.
impl CarriesBug for Error
An I/O error carries the bug it was made from, if any.
Source§impl CarriesBug for Infallible
An error that can’t happen carries no bug.
impl CarriesBug for Infallible
An error that can’t happen carries no bug.