Struct aws_smithy_http::endpoint::SharedEndpointResolver
source · pub struct SharedEndpointResolver<T>(/* private fields */);
Expand description
Endpoint Resolver wrapper that may be shared
Implementations§
sourcepub fn new(resolve_endpoint: impl ResolveEndpoint<T> + 'static) -> Self
pub fn new(resolve_endpoint: impl ResolveEndpoint<T> + 'static) -> Self
Create a new SharedEndpointResolver
from ResolveEndpoint
Trait Implementations§
source§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.
source§fn clone(&self) -> SharedEndpointResolver<T>
fn clone(&self) -> SharedEndpointResolver<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§fn from(resolve_endpoint: Arc<dyn ResolveEndpoint<T>>) -> Self
fn from(resolve_endpoint: Arc<dyn ResolveEndpoint<T>>) -> Self
Converts to this type from the input type.
source§fn resolve_endpoint(&self, params: &T) -> Result
fn resolve_endpoint(&self, params: &T) -> Result
Given some endpoint parameters, resolve an endpoint or return an error when resolution is
impossible.
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more