Trait router_error::Explain

source ·
pub trait Explain: Error + Debug + Display + Send + Sync + AnyCast {
    // Required method
    fn as_zx_status(&self) -> Status;
}
Expand description

All detailed error objects must implement the Explain trait, since:

  • Some operations are not yet refactored into bedrock.
  • Some operations fundamentally are not fit for bedrock.

The detailed errors are hidden, but users may get strings or codes for debugging.

Required Methods§

Trait Implementations§

source§

impl DowncastErrorForTest for dyn Explain

source§

fn downcast_for_test<E: Explain>(&self) -> &E

For tests only. Downcast the erased error to E or panic if fails.

Implementors§