Trait ResultExt

Source
pub trait ResultExt {
    type Ok;

    // Required method
    fn to_racetime(self) -> Result<Self::Ok, Error>;
}
Expand description

A convenience trait for converting results to use this crate’s Error type.

Required Associated Types§

Required Methods§

Source

fn to_racetime(self) -> Result<Self::Ok, Error>

Convert the error to this crate’s Error type using the Error::Custom variant.

Implementations on Foreign Types§

Source§

impl<T, E: Error + Send + Sync + 'static> ResultExt for Result<T, E>

Source§

type Ok = T

Source§

fn to_racetime(self) -> Result<T, Error>

Implementors§