Trait RpcReqRes

Source
pub trait RpcReqRes<Param, Res>: Debug + Send {
    // Required methods
    fn param(&self) -> &Param;
    fn answer(&self, res: Result<Res, &str>);
}

Required Methods§

Source

fn param(&self) -> &Param

Source

fn answer(&self, res: Result<Res, &str>)

Trait Implementations§

Source§

impl<P: PartialEq, R> PartialEq for Box<dyn RpcReqRes<P, R>>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<P: PartialEq, R> Eq for Box<dyn RpcReqRes<P, R>>

Implementors§