Struct twitch_api::client::DummyHttpClient
source · pub struct DummyHttpClient;
Available on crate feature
client
only.Expand description
A client that will never work, used to trick documentation tests
Trait Implementations§
source§impl Client for DummyHttpClient
impl Client for DummyHttpClient
source§impl ClientDefault<'static> for DummyHttpClientwhere
Self: Default,
impl ClientDefault<'static> for DummyHttpClientwhere Self: Default,
§type Error = DummyHttpClient
type Error = DummyHttpClient
Errors that can happen when assembling the client
source§fn default_client_with_name(_: Option<HeaderValue>) -> Result<Self, Self::Error>
fn default_client_with_name(_: Option<HeaderValue>) -> Result<Self, Self::Error>
source§fn default_client() -> Self
fn default_client() -> Self
Construct
Self
with sane defaults for API calls and oauth2.source§impl Clone for DummyHttpClient
impl Clone for DummyHttpClient
source§fn clone(&self) -> DummyHttpClient
fn clone(&self) -> DummyHttpClient
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 DummyHttpClient
impl Debug for DummyHttpClient
source§impl Default for DummyHttpClient
impl Default for DummyHttpClient
source§fn default() -> DummyHttpClient
fn default() -> DummyHttpClient
Returns the “default value” for a type. Read more
source§impl Display for DummyHttpClient
impl Display for DummyHttpClient
source§impl Error for DummyHttpClient
impl Error for DummyHttpClient
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl RefUnwindSafe for DummyHttpClient
impl Send for DummyHttpClient
impl Sync for DummyHttpClient
impl Unpin for DummyHttpClient
impl UnwindSafe for DummyHttpClient
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