Struct aws_smithy_runtime::client::http::test_util::wire::LoggingDnsResolver
source · pub struct LoggingDnsResolver { /* private fields */ }
Available on crate features
client
and test-util
and connector-hyper-0-14-x
and wire-mock
only.Expand description
DNS resolver that keeps a log of all lookups
Regardless of what hostname is requested, it will always return the same socket address.
Trait Implementations§
source§impl Clone for LoggingDnsResolver
impl Clone for LoggingDnsResolver
source§fn clone(&self) -> LoggingDnsResolver
fn clone(&self) -> LoggingDnsResolver
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§impl Debug for LoggingDnsResolver
impl Debug for LoggingDnsResolver
source§impl Service<Name> for LoggingDnsResolver
impl Service<Name> for LoggingDnsResolver
§type Response = Once<SocketAddr>
type Response = Once<SocketAddr>
Responses given by the service.
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = Pin<Box<dyn Future<Output = Result<<LoggingDnsResolver as Service<Name>>::Response, <LoggingDnsResolver as Service<Name>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<LoggingDnsResolver as Service<Name>>::Response, <LoggingDnsResolver as Service<Name>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl RefUnwindSafe for LoggingDnsResolver
impl Send for LoggingDnsResolver
impl Sync for LoggingDnsResolver
impl Unpin for LoggingDnsResolver
impl UnwindSafe for LoggingDnsResolver
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.