pub trait ResolveEndpoint<Params>: Send + Sync {
    // Required method
    fn resolve_endpoint(&self, params: &Params) -> Result;
}
Expand description

Implementors of this trait can resolve an endpoint that will be applied to a request.

Required Methods§

source

fn resolve_endpoint(&self, params: &Params) -> Result

Given some endpoint parameters, resolve an endpoint or return an error when resolution is impossible.

Trait Implementations§

source§

impl<T> AsRef<dyn ResolveEndpoint<T>> for SharedEndpointResolver<T>

source§

fn as_ref(&self) -> &(dyn ResolveEndpoint<T> + 'static)

Converts this type into a shared reference of the (usually inferred) input type.

Implementations on Foreign Types§

source§

impl<T> ResolveEndpoint<T> for &'static str

source§

fn resolve_endpoint(&self, _params: &T) -> Result

Implementors§

source§

impl<T> ResolveEndpoint<T> for Endpoint

This allows customers that use Endpoint to override the endpoint to continue to do so

source§

impl<T> ResolveEndpoint<T> for SharedEndpointResolver<T>