Skip to main content

StatusExt

Trait StatusExt 

pub trait StatusExt {
    type Output;

    // Required method
    fn or_status(self, code: Code) -> Result<Self::Output, Status>;
}
Available on crate feature ttrpc only.

Required Associated Types§

type Output

Required Methods§

fn or_status(self, code: Code) -> Result<Self::Output, Status>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<T, E> StatusExt for Result<T, E>
where E: ToString,

§

type Output = T