Skip to main content

Response

Type Alias Response 

Source
pub type Response<Result> = Response<Result, Error>;

Aliased Type§

pub enum Response<Result> {
    Result {
        id: RequestId,
        result: Result,
    },
    Error {
        id: RequestId,
        error: Error,
    },
}

Variants§

§

Result

Fields

§result: Result
§

Error

Fields

§error: Error

Trait Implementations§

Source§

impl<Response> IntoV2 for Response<Response>
where Response: IntoV2,

Available on crate feature unstable_protocol_v2 only.
Source§

type Output = Response<<Response as IntoV2>::Output, Error>

The corresponding v2 draft type.
Source§

fn into_v2(self) -> Result<Self::Output>

Converts this value into the corresponding v2 draft type. Read more