anvil::eth::error

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§

Source

fn to_rpc_result(self) -> ResponseResult

Implementations on Foreign Types§

Source§

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

Source§

fn to_rpc_result(self) -> ResponseResult

Implementors§