pub trait ProcessQuery {
type Method: RpcMethod;
type Output;
// Required methods
fn into_request(self, block_ref: BlockReference) -> Result<Self::Method>;
fn from_response(
resp: <Self::Method as RpcMethod>::Response,
) -> Result<Self::Output>;
}
Expand description
Trait used as a converter from WorkspaceRequest to unc-rpc request, and from unc-rpc response to a WorkspaceResult. Mostly used internally to facilitate syntax sugar for performing RPC requests with async builders.
Required Associated Types§
Required Methods§
Sourcefn into_request(self, block_ref: BlockReference) -> Result<Self::Method>
fn into_request(self, block_ref: BlockReference) -> Result<Self::Method>
Convert into the Request object that is required to perform the RPC request.
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.