risingwave_common::util::meta_addr

Trait IntoUrlParse

source
pub trait IntoUrlParse {
    type Ret;

    // Required methods
    fn into_url_parse(self, arg_1: impl Into<String>) -> Self::Ret;
    fn into_url_parse_with<__F, __ARG_1>(self, f: __F) -> Self::Ret
       where __F: FnOnce() -> __ARG_1,
             __ARG_1: Into<String>;
}
Expand description

Extension trait for converting [http::uri::InvalidUri] into MetaAddressStrategyParseError::UrlParse with the given context.

Required Associated Types§

Required Methods§

source

fn into_url_parse(self, arg_1: impl Into<String>) -> Self::Ret

Converts [http::uri::InvalidUri] into MetaAddressStrategyParseError::UrlParse with the given context.

source

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

Converts [http::uri::InvalidUri] into MetaAddressStrategyParseError::UrlParse with the context returned by the given function.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoUrlParse for InvalidUri

source§

fn into_url_parse(self, arg_1: impl Into<String>) -> Self::Ret

Converts [http::uri::InvalidUri] into MetaAddressStrategyParseError::UrlParse with the given context.

source§

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

Converts [http::uri::InvalidUri] into MetaAddressStrategyParseError::UrlParse with the context returned by the given function.

source§

type Ret = MetaAddressStrategyParseError

source§

impl<__T> IntoUrlParse for Result<__T, InvalidUri>

source§

fn into_url_parse(self, arg_1: impl Into<String>) -> Self::Ret

Converts [http::uri::InvalidUri] into MetaAddressStrategyParseError::UrlParse with the given context.

source§

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

Converts [http::uri::InvalidUri] into MetaAddressStrategyParseError::UrlParse with the context returned by the given function.

source§

type Ret = Result<__T, MetaAddressStrategyParseError>

Implementors§