clementine_core::errors

Trait ResultExt

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

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.

Implementations on Foreign Types§

Source§

impl<U: Sized, T: Into<BridgeError>> ResultExt for Result<U, T>

Implementors§