pub struct SilentStreamingClient;Available on crate feature
test-utils only.Expand description
A mock HTTP client whose send_streaming never answers, as a provider
that accepts a request and then sends nothing.
Trait Implementations§
Source§impl Clone for SilentStreamingClient
impl Clone for SilentStreamingClient
Source§impl Debug for SilentStreamingClient
impl Debug for SilentStreamingClient
Source§impl Default for SilentStreamingClient
impl Default for SilentStreamingClient
Source§impl HttpClientExt for SilentStreamingClient
impl HttpClientExt for SilentStreamingClient
Source§fn send<T, U>(
&self,
_req: Request<T>,
) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
fn send<T, U>( &self, _req: Request<T>, ) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
Sends a request and returns headers with a lazy body converted from bytes to
U.Source§fn send_multipart<U>(
&self,
_req: Request<MultipartForm>,
) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
fn send_multipart<U>( &self, _req: Request<MultipartForm>, ) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
Sends a multipart request and returns headers with a lazy body converted to
U.Source§fn send_streaming<T>(
&self,
_req: Request<T>,
) -> impl Future<Output = Result<StreamingResponse>> + WasmCompatSend
fn send_streaming<T>( &self, _req: Request<T>, ) -> impl Future<Output = Result<StreamingResponse>> + WasmCompatSend
Sends a request and returns headers with a stream of transport byte chunks.
Auto Trait Implementations§
impl Freeze for SilentStreamingClient
impl RefUnwindSafe for SilentStreamingClient
impl Send for SilentStreamingClient
impl Sync for SilentStreamingClient
impl Unpin for SilentStreamingClient
impl UnsafeUnpin for SilentStreamingClient
impl UnwindSafe for SilentStreamingClient
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