Enum solana_jsonrpc_core::types::response::Output[][src]

pub enum Output {
    Success(Success),
    Failure(Failure),
}

Represents output - failure or success

Variants

Success

Failure

Methods

impl Output
[src]

Creates new output given Result, Id and Version.

Creates new failure output indicating malformed request.

Get the jsonrpc protocol version.

Get the correlation id.

Trait Implementations

impl Debug for Output
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Output
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Output
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Output> for CoreResult<Value>
[src]

Convert into a result. Will be Ok if it is a Success and Err if Failure.

Auto Trait Implementations

impl Send for Output

impl Sync for Output