pub struct SharedEndpointResolver(_);
Expand description
Shared endpoint resolver.
This is a simple shared ownership wrapper type for the EndpointResolver
trait.
Implementations§
sourcepub fn new(endpoint_resolver: impl EndpointResolver + 'static) -> Self
pub fn new(endpoint_resolver: impl EndpointResolver + 'static) -> Self
Creates a new SharedEndpointResolver
.
Trait Implementations§
source§fn clone(&self) -> SharedEndpointResolver
fn clone(&self) -> SharedEndpointResolver
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 resolve_endpoint(&self, params: &EndpointResolverParams) -> Future<Endpoint>
fn resolve_endpoint(&self, params: &EndpointResolverParams) -> Future<Endpoint>
Asynchronously resolves an endpoint to use from the given endpoint parameters.
Auto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more