Struct aws_smithy_runtime::client::http::test_util::NeverClient
source · pub struct NeverClient { /* private fields */ }
Available on crate features
client
and test-util
only.Expand description
A client that will never respond.
Returned futures will return Pending
forever
Implementations§
Trait Implementations§
source§impl Clone for NeverClient
impl Clone for NeverClient
source§fn clone(&self) -> NeverClient
fn clone(&self) -> NeverClient
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 NeverClient
impl Debug for NeverClient
source§impl Default for NeverClient
impl Default for NeverClient
source§fn default() -> NeverClient
fn default() -> NeverClient
Returns the “default value” for a type. Read more
source§impl HttpClient for NeverClient
impl HttpClient for NeverClient
source§fn http_connector(
&self,
_: &HttpConnectorSettings,
_: &RuntimeComponents
) -> SharedHttpConnector
fn http_connector( &self, _: &HttpConnectorSettings, _: &RuntimeComponents ) -> SharedHttpConnector
Returns a HTTP connector based on the requested connector settings. Read more
source§impl HttpConnector for NeverClient
impl HttpConnector for NeverClient
source§fn call(&self, _request: HttpRequest) -> HttpConnectorFuture
fn call(&self, _request: HttpRequest) -> HttpConnectorFuture
Asynchronously converts a request into a response.
Auto Trait Implementations§
impl Freeze for NeverClient
impl RefUnwindSafe for NeverClient
impl Send for NeverClient
impl Sync for NeverClient
impl Unpin for NeverClient
impl UnwindSafe for NeverClient
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.