pub trait TryIntoEndpoint: Send + Sealed {
    // Required method
    fn try_into(self) -> Result<Endpoint, EndpointError>;
}
Expand description

Represents a type that can be converted into an Endpoint.

This trait is intentionally sealed to prevent implementation on third-party types.

Required Methods§

source

fn try_into(self) -> Result<Endpoint, EndpointError>

Convert into an Endpoint via an owned Self.

Enables efficient Endpoint -> Endpoint conversion, while permitting the creation of a new Endpoint when given types like &str.

Implementations on Foreign Types§

source§

impl TryIntoEndpoint for &str

source§

fn try_into(self) -> Result<Endpoint, EndpointError>

Implementors§