Trait zebra_rpc::methods::errors::OkOrServerError

source ·
pub(crate) trait OkOrServerError<T> {
    // Required method
    fn ok_or_server_error<S: ToString>(self, message: S) -> Result<T, Error>;
}

Required Methods§

source

fn ok_or_server_error<S: ToString>(self, message: S) -> Result<T, Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> OkOrServerError<T> for Option<T>

source§

fn ok_or_server_error<S: ToString>(self, message: S) -> Result<T, Error>

Implementors§