Enum jsonrpc_core::response::SyncOutput
[−]
[src]
pub enum SyncOutput { Success(Success), Failure(Failure), }
Represents synchronous output - failure or success
Variants
Success(Success)
Success
Failure(Failure)
Failure
Methods
impl SyncOutput
[src]
fn from(result: Result<Value, Error>, id: Id, jsonrpc: Version) -> Self
Creates new synchronous output given Result
, Id
and Version
.
Trait Implementations
impl Debug for SyncOutput
[src]
impl PartialEq for SyncOutput
[src]
fn eq(&self, __arg_0: &SyncOutput) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SyncOutput) -> bool
This method tests for !=
.
impl Deserialize for SyncOutput
[src]
fn deserialize<D>(deserializer: &mut D) -> Result<SyncOutput, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.
impl Serialize for SyncOutput
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.