[−][src]Enum chttp::error::Error
All possible types of errors that can be returned from cHTTP.
Variants
BadClientCertificate(Option<String>)A problem occurred with the local certificate.
BadServerCertificate(Option<String>)The server certificate could not be validated.
CanceledThe request was canceled before it could be completed.
ConnectFailedFailed to connect to the server.
CouldntResolveHostCouldn't resolve host name.
CouldntResolveProxyCouldn't resolve proxy host name.
Curl(String)An unrecognized error thrown by curl.
InternalAn internal error occurred in the client.
InvalidContentEncoding(Option<String>)Unrecognized or bad content encoding returned by the server.
InvalidCredentialsProvided credentials were rejected by the server.
InvalidHttpFormat(Error)Validation error when constructing the request or parsing the response.
InvalidJsonJSON syntax error when constructing or parsing JSON values.
InvalidUtf8Invalid UTF-8 string error.
Io(Error)An unknown I/O error.
NoResponseThe server did not send a response.
RangeRequestUnsupportedThe server does not support or accept range requests.
RequestBodyError(Option<String>)An error occurred while writing the request body.
ResponseBodyError(Option<String>)An error occurred while reading the response body.
SSLConnectFailed(Option<String>)Failed to connect over a secure socket.
SSLEngineError(Option<String>)An error ocurred in the secure socket engine.
TimeoutAn ongoing request took longer than the configured timeout time.
TooManyConnectionsReturned when making more simultaneous requests would exceed the configured TCP connection limit.
TooManyRedirectsNumber of redirects hit the maximum amount.
Trait Implementations
impl From<Error> for Error[src]
impl From<Error> for Errorimpl From<MultiError> for Error[src]
impl From<MultiError> for Errorfn from(error: MultiError) -> Error | [src] |
impl From<Error> for Error[src]
impl From<Error> for Errorimpl From<Error> for Error[src]
impl From<Error> for Errorimpl From<Error> for Error[src]
impl From<Error> for Errorimpl From<FromUtf8Error> for Error[src]
impl From<FromUtf8Error> for Errorfn from(_: FromUtf8Error) -> Error | [src] |
impl From<Utf8Error> for Error[src]
impl From<Utf8Error> for Errorimpl From<Error> for Error[src]
impl From<Error> for Errorimpl Debug for Error[src]
impl Debug for Errorimpl Display for Error[src]
impl Display for Errorimpl Error for Error[src]
impl Error for ErrorAuto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T