pub struct PanickingNoOpClient { /* private fields */ }Expand description
A variant of NoOpClient that panics instead of returning an error.
This is useful during development to catch unexpected HTTP requests with a clear stack trace showing exactly where the request originated.
Implementations§
Trait Implementations§
Source§impl Clone for PanickingNoOpClient
impl Clone for PanickingNoOpClient
Source§fn clone(&self) -> PanickingNoOpClient
fn clone(&self) -> PanickingNoOpClient
Returns a duplicate 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 PanickingNoOpClient
impl Debug for PanickingNoOpClient
Source§impl Default for PanickingNoOpClient
impl Default for PanickingNoOpClient
Source§impl HttpClient for PanickingNoOpClient
impl HttpClient for PanickingNoOpClient
Source§fn send<'life0, 'async_trait>(
&'life0 self,
req: Request,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
req: Request,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Perform a request.
Auto Trait Implementations§
impl Freeze for PanickingNoOpClient
impl RefUnwindSafe for PanickingNoOpClient
impl Send for PanickingNoOpClient
impl Sync for PanickingNoOpClient
impl Unpin for PanickingNoOpClient
impl UnwindSafe for PanickingNoOpClient
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