pub type RpcResult<R> = Result<R, RpcError>;Expand description
RPC result type alias for RPC handler
Aliased Type§
pub enum RpcResult<R> {
Ok(R),
Err(RpcError),
}Variants§
Trait Implementations§
Source§impl<R> From<HandlerResponse<R>> for RpcResult<R>
impl<R> From<HandlerResponse<R>> for RpcResult<R>
Source§fn from(res: HandlerResponse<R>) -> Self
fn from(res: HandlerResponse<R>) -> Self
Converts to this type from the input type.