pub enum ResponseError {
Unknown,
NotFoundStream,
ConnectionClosed,
Terminated,
Send(String),
FlushError(String),
}Expand description
Represents various errors that can occur during HTTP response processing.
Variants§
Unknown
Represents an unknown error with a message.
NotFoundStream
Represents an error where the stream was not found.
ConnectionClosed
Represents an error where the connection was closed.
Terminated
Represents a terminated operation or connection.
Send(String)
Represents a send error with a message string.
FlushError(String)
Represents a flush operation error with a message string.
Trait Implementations§
Source§impl Clone for ResponseError
impl Clone for ResponseError
Source§fn clone(&self) -> ResponseError
fn clone(&self) -> ResponseError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResponseError
impl Debug for ResponseError
Source§impl Default for ResponseError
impl Default for ResponseError
Source§fn default() -> ResponseError
fn default() -> ResponseError
Source§impl<'de> Deserialize<'de> for ResponseError
impl<'de> Deserialize<'de> for ResponseError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for ResponseError
Implements the Display trait for ResponseError.
This allows ResponseError variants to be formatted into human-readable strings.
impl Display for ResponseError
Implements the Display trait for ResponseError.
This allows ResponseError variants to be formatted into human-readable strings.
Source§impl Error for ResponseError
Implements the std::error::Error trait for ResponseError.
This allows ResponseError to be treated as a standard Rust error type.
impl Error for ResponseError
Implements the std::error::Error trait for ResponseError.
This allows ResponseError to be treated as a standard Rust error type.
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for ResponseError
Converts an I/O error to a ResponseError.
impl From<Error> for ResponseError
Converts an I/O error to a ResponseError.
Maps I/O errors to Send variant with the error message.
Source§impl From<ResponseError> for RequestError
Converts a response error to a RequestError.
impl From<ResponseError> for RequestError
Converts a response error to a RequestError.
Maps response errors to WriteTimeout with HttpStatus::InternalServerError.