Enum twitch_api::helix::CreateRequestError
source · [−]pub enum CreateRequestError {
HttpError(Error),
SerializeError(BodyError),
InvalidUri(InvalidUri),
Custom(Cow<'static, str>),
}
Available on crate feature
helix
only.Expand description
Could not create request
Variants
HttpError(Error)
http crate returned an error
SerializeError(BodyError)
serialization of body failed
InvalidUri(InvalidUri)
could not assemble URI for request
Custom(Cow<'static, str>)
{0}
Trait Implementations
sourceimpl Debug for CreateRequestError
impl Debug for CreateRequestError
sourceimpl Display for CreateRequestError
impl Display for CreateRequestError
sourceimpl Error for CreateRequestError
impl Error for CreateRequestError
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()
sourceimpl From<BodyError> for CreateRequestError
impl From<BodyError> for CreateRequestError
sourceimpl<RE: Error + Send + Sync + 'static> From<CreateRequestError> for ClientRequestError<RE>
impl<RE: Error + Send + Sync + 'static> From<CreateRequestError> for ClientRequestError<RE>
sourcefn from(source: CreateRequestError) -> Self
fn from(source: CreateRequestError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for CreateRequestError
impl From<Error> for CreateRequestError
sourceimpl From<InvalidUri> for CreateRequestError
impl From<InvalidUri> for CreateRequestError
sourcefn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for CreateRequestError
impl Send for CreateRequestError
impl Sync for CreateRequestError
impl Unpin for CreateRequestError
impl !UnwindSafe for CreateRequestError
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