pub struct NoopHttpClient;Expand description
A no-op HTTP client that always returns an error. Used as fallback when no real client is available.
Trait Implementations§
Source§impl Debug for NoopHttpClient
impl Debug for NoopHttpClient
Source§impl Default for NoopHttpClient
impl Default for NoopHttpClient
Source§fn default() -> NoopHttpClient
fn default() -> NoopHttpClient
Returns the “default value” for a type. Read more
Source§impl HttpClient for NoopHttpClient
impl HttpClient for NoopHttpClient
Source§fn request(&self, _req: HttpRequest) -> Result<HttpResponse, PachaError>
fn request(&self, _req: HttpRequest) -> Result<HttpResponse, PachaError>
Perform an HTTP request. Read more
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