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§
fn as_zx_status(&self) -> Status
Trait Implementations§
Source§impl DowncastErrorForTest for dyn Explain
 
impl DowncastErrorForTest for dyn Explain
Source§fn downcast_for_test<E: Explain>(&self) -> &E
 
fn downcast_for_test<E: Explain>(&self) -> &E
For tests only. Downcast the erased error to 
E or panic if fails.