Skip to main content

ToRpcResponseResult

Trait ToRpcResponseResult 

Source
pub(crate) trait ToRpcResponseResult {
    // Required method
    fn to_rpc_result(self) -> ResponseResult;
}
Expand description

Helper trait to easily convert results to rpc results

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Serialize> ToRpcResponseResult for Result<T, BlockchainError>

Implementors§