Enum jsonrpc::method_types::RequestResult
[−]
[src]
pub enum RequestResult<RET, RET_ERROR> { MethodResult(MethodResult<RET, RET_ERROR>), RequestError(RequestError), }
Variants
MethodResult(MethodResult<RET, RET_ERROR>)
RequestError(RequestError)
Methods
impl<RET, RET_ERROR> RequestResult<RET, RET_ERROR>
[src]
fn unwrap_result(self) -> MethodResult<RET, RET_ERROR>
fn unwrap_error(self) -> RequestError
Trait Implementations
impl<RET: Debug, RET_ERROR: Debug> Debug for RequestResult<RET, RET_ERROR>
[src]
impl<RET: PartialEq, RET_ERROR: PartialEq> PartialEq for RequestResult<RET, RET_ERROR>
[src]
fn eq(&self, __arg_0: &RequestResult<RET, RET_ERROR>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RequestResult<RET, RET_ERROR>) -> bool
This method tests for !=
.
impl<RET: Deserialize, RET_ERROR: Deserialize> From<ResponseResult> for RequestResult<RET, RET_ERROR>
[src]
fn from(response_result: ResponseResult) -> Self
Performs the conversion.