Enum actix_web::client::SendRequestError
source · pub enum SendRequestError {
Timeout,
Connector(ClientConnectorError),
ParseError(HttpResponseParserError),
Io(Error),
}
Expand description
A set of errors that can occur during request sending and response reading
Variants
Timeout
Response took too long
Connector(ClientConnectorError)
Failed to connect to host
ParseError(HttpResponseParserError)
Error parsing response
Io(Error)
Error reading response payload
Trait Implementations
sourceimpl Debug for SendRequestError
impl Debug for SendRequestError
sourceimpl Display for SendRequestError
impl Display for SendRequestError
sourceimpl Fail for SendRequestError
impl Fail for SendRequestError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<ClientConnectorError> for SendRequestError
impl From<ClientConnectorError> for SendRequestError
sourcefn from(err: ClientConnectorError) -> SendRequestError
fn from(err: ClientConnectorError) -> SendRequestError
Converts to this type from the input type.
sourceimpl From<Error> for SendRequestError
impl From<Error> for SendRequestError
sourcefn from(err: Error) -> SendRequestError
fn from(err: Error) -> SendRequestError
Converts to this type from the input type.
sourceimpl From<SendRequestError> for ClientError
impl From<SendRequestError> for ClientError
sourcefn from(err: SendRequestError) -> ClientError
fn from(err: SendRequestError) -> ClientError
Converts to this type from the input type.
sourceimpl ResponseError for SendRequestError
impl ResponseError for SendRequestError
Convert SendRequestError
to a HttpResponse
sourcefn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
Auto Trait Implementations
impl !RefUnwindSafe for SendRequestError
impl Send for SendRequestError
impl Sync for SendRequestError
impl Unpin for SendRequestError
impl !UnwindSafe for SendRequestError
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