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
source§type Response = Once<SocketAddr>
type Response = Once<SocketAddr>
Responses given by the service.
source§type Error = Infallible
type Error = Infallible
Errors produced by the service.
source§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 Freeze for LoggingDnsResolver
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.