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
sourceimpl<'a> Client<'a> for DummyHttpClient
impl<'a> Client<'a> for DummyHttpClient
type Error = DummyHttpClient
type Error = DummyHttpClient
Error returned by the client
sourceimpl 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
sourcefn default_client_with_name(_: Option<HeaderValue>) -> Result<Self, Self::Error>
fn default_client_with_name(_: Option<HeaderValue>) -> Result<Self, Self::Error>
sourcefn default_client() -> Self
fn default_client() -> Self
Construct
Self
with sane defaults for API calls and oauth2.sourceimpl Clone for DummyHttpClient
impl Clone for DummyHttpClient
sourcefn clone(&self) -> DummyHttpClient
fn clone(&self) -> DummyHttpClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DummyHttpClient
impl Debug for DummyHttpClient
sourceimpl Default for DummyHttpClient
impl Default for DummyHttpClient
sourcefn default() -> DummyHttpClient
fn default() -> DummyHttpClient
Returns the “default value” for a type. Read more
sourceimpl Display for DummyHttpClient
impl Display for DummyHttpClient
sourceimpl Error for DummyHttpClient
impl Error for DummyHttpClient
1.30.0 · sourcefn 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 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more