Trait bonsaidb::keystorage::s3::aws_sdk_s3::config::endpoint::ResolveEndpoint
pub trait ResolveEndpoint<Params>: Send + Sync {
// Required method
fn resolve_endpoint(
&self,
params: &Params
) -> Result<Endpoint, ResolveEndpointError>;
}
Expand description
Implementors of this trait can resolve an endpoint that will be applied to a request.
Required Methods§
fn resolve_endpoint(
&self,
params: &Params
) -> Result<Endpoint, ResolveEndpointError>
fn resolve_endpoint( &self, params: &Params ) -> Result<Endpoint, ResolveEndpointError>
Given some endpoint parameters, resolve an endpoint or return an error when resolution is impossible.
Trait Implementations§
§fn as_ref(&self) -> &(dyn ResolveEndpoint<T> + 'static)
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§
§impl<T> ResolveEndpoint<T> for &'static str
impl<T> ResolveEndpoint<T> for &'static str
fn resolve_endpoint( &self, _params: &T ) -> Result<Endpoint, ResolveEndpointError>
§impl ResolveEndpoint<Params> for DefaultResolver
impl ResolveEndpoint<Params> for DefaultResolver
fn resolve_endpoint( &self, params: &Params ) -> Result<Endpoint, ResolveEndpointError>
§impl ResolveEndpoint<Params> for DefaultResolver
impl ResolveEndpoint<Params> for DefaultResolver
fn resolve_endpoint( &self, params: &Params ) -> Result<Endpoint, ResolveEndpointError>
Implementors§
impl ResolveEndpoint<Params> for bonsaidb::keystorage::s3::aws_sdk_s3::config::endpoint::DefaultResolver
impl<T> ResolveEndpoint<T> for Endpoint
This allows customers that use Endpoint
to override the endpoint to continue to do so