pub trait ResultExt: Sized {
type Output;
// Required methods
fn map_to_eyre(self) -> Result<Self::Output, Report>;
fn map_to_status(self) -> Result<Self::Output, Status>;
}
Expand description
Extension traits for results to easily convert them to eyre::Report and tonic::Status through BridgeError.
Required Associated Types§
Required Methods§
fn map_to_eyre(self) -> Result<Self::Output, Report>
fn map_to_status(self) -> Result<Self::Output, Status>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.