Trait JSONinifyPayloadReader

Source
pub trait JSONinifyPayloadReader {
    // Required methods
    fn read_query(&self, r: &mut dyn Read) -> Result<Value, JSONinifyError>;
    fn read_response(&self, r: &mut dyn Read) -> Result<Value, JSONinifyError>;
}

Required Methods§

Source

fn read_query(&self, r: &mut dyn Read) -> Result<Value, JSONinifyError>

Source

fn read_response(&self, r: &mut dyn Read) -> Result<Value, JSONinifyError>

Implementors§

Source§

impl<T> JSONinifyPayloadReader for T
where T: RpcMethod, T::Query: BinProtRead + Serialize, T::Response: BinProtRead + Serialize,