pub struct NoopHttpClient;Expand description
A placeholder implementation for testing or an echo provider. Every fetch call
returns
HttpClientError::Transport, allowing assembly paths that require Arc<dyn HttpClient>
to skip constructing a real HTTP stack.
Trait Implementations§
Source§impl HttpClient for NoopHttpClient
impl HttpClient for NoopHttpClient
fn fetch( &self, _req: HttpRequest, ) -> BoxFuture<'_, Result<HttpResponse, HttpClientError>>
Auto Trait Implementations§
impl Freeze for NoopHttpClient
impl RefUnwindSafe for NoopHttpClient
impl Send for NoopHttpClient
impl Sync for NoopHttpClient
impl Unpin for NoopHttpClient
impl UnsafeUnpin for NoopHttpClient
impl UnwindSafe for NoopHttpClient
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