Trait 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§

Source§

impl Explain for RouterError

impl Explain for ActionError

impl Explain for ModelError

impl Explain for OpenError

impl Explain for OpenExposedDirError

impl Explain for OpenOutgoingDirError