Trait IntoRespResultWithErr

Source
pub trait IntoRespResultWithErr<T, E: RespError> {
    // Required method
    fn into_with_err<Et: Into<E>>(self, err: Et) -> RespResult<T, E>;
}
Expand description

convert into RespResult with provide error

Required Methods§

Source

fn into_with_err<Et: Into<E>>(self, err: Et) -> RespResult<T, E>

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<T, E> IntoRespResultWithErr<T, E> for Option<T>
where E: RespError,

Source§

fn into_with_err<Et: Into<E>>(self, err: Et) -> RespResult<T, E>

Implementors§