Trait jsonrpsee_core::server::IntoResponse

source ·
pub trait IntoResponse {
    type Output: Serialize + Clone;

    // Required method
    fn into_response(self) -> ResponsePayload<'static, Self::Output>;
}
Expand description

Something that can be converted into a JSON-RPC method call response.

If the value couldn’t be serialized/encoded, jsonrpsee will sent out an error to the client response could not be serialized.

Required Associated Types§

source

type Output: Serialize + Clone

Output.

Required Methods§

source

fn into_response(self) -> ResponsePayload<'static, Self::Output>

Something that can be converted into a JSON-RPC method call response.

Implementations on Foreign Types§

source§

impl IntoResponse for &'static str

§

type Output = &'static str

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for bool

§

type Output = bool

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for i8

§

type Output = i8

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for i16

§

type Output = i16

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for i32

§

type Output = i32

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for i64

§

type Output = i64

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for i128

§

type Output = i128

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for isize

§

type Output = isize

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for u8

§

type Output = u8

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for u16

§

type Output = u16

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for u32

§

type Output = u32

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for u64

§

type Output = u64

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for u128

§

type Output = u128

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for ()

§

type Output = ()

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for usize

§

type Output = usize

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for String

§

type Output = String

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl IntoResponse for ErrorObjectOwned

§

type Output = ()

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl<T> IntoResponse for ResponsePayload<'static, T>
where T: Serialize + Clone,

§

type Output = T

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl<T> IntoResponse for Option<T>
where T: Serialize + Clone,

§

type Output = Option<T>

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl<T> IntoResponse for Vec<T>
where T: Serialize + Clone,

§

type Output = Vec<T>

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl<T, E: Into<ErrorObjectOwned>> IntoResponse for Result<T, E>
where T: Serialize + Clone,

§

type Output = T

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

source§

impl<T, const N: usize> IntoResponse for [T; N]

§

type Output = [T; N]

source§

fn into_response(self) -> ResponsePayload<'static, Self::Output>

Implementors§

source§

impl IntoResponse for Value

source§

impl<T> IntoResponse for jsonrpsee_core::server::ResponsePayload<'static, T>
where T: Serialize + Clone,

§

type Output = T