risingwave_connector_codec::decoder::json

Trait IntoRequest

source
pub trait IntoRequest {
    type Ret;

    // Required methods
    fn into_request(self, url: impl Into<String>) -> Self::Ret;
    fn into_request_with<__F, __URL>(self, f: __F) -> Self::Ret
       where __F: FnOnce() -> __URL,
             __URL: Into<String>;
}
Expand description

Extension trait for converting [reqwest::Error] into Error::Request with the given context.

Required Associated Types§

Required Methods§

source

fn into_request(self, url: impl Into<String>) -> Self::Ret

Converts [reqwest::Error] into Error::Request with the given context.

source

fn into_request_with<__F, __URL>(self, f: __F) -> Self::Ret
where __F: FnOnce() -> __URL, __URL: Into<String>,

Converts [reqwest::Error] into Error::Request with the context returned by the given function.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoRequest for Error

source§

fn into_request(self, url: impl Into<String>) -> Self::Ret

Converts [reqwest::Error] into Error::Request with the given context.

source§

fn into_request_with<__F, __URL>(self, f: __F) -> Self::Ret
where __F: FnOnce() -> __URL, __URL: Into<String>,

Converts [reqwest::Error] into Error::Request with the context returned by the given function.

source§

type Ret = Error

source§

impl<__T> IntoRequest for Result<__T, Error>

source§

fn into_request(self, url: impl Into<String>) -> Self::Ret

Converts [reqwest::Error] into Error::Request with the given context.

source§

fn into_request_with<__F, __URL>(self, f: __F) -> Self::Ret
where __F: FnOnce() -> __URL, __URL: Into<String>,

Converts [reqwest::Error] into Error::Request with the context returned by the given function.

source§

type Ret = Result<__T, Error>

Implementors§