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 (const: unstable) · 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<ResponseError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResponseError, <__D as Deserializer<'de>>::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.
impl Eq for ResponseError
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
use the Display impl or to_string()
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.
Source§fn from(_: ResponseError) -> RequestError
fn from(_: ResponseError) -> RequestError
Source§impl PartialEq for ResponseError
impl PartialEq for ResponseError
Source§impl Serialize for ResponseError
impl Serialize for ResponseError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ResponseError
Auto Trait Implementations§
impl Forget for ResponseError
impl Freeze for ResponseError
impl Move for ResponseError
impl RefUnwindSafe for ResponseError
impl Send for ResponseErrorwhere
RawVecInner: Send,
impl Sync for ResponseErrorwhere
RawVecInner: Sync,
impl Unpin for ResponseError
impl UnsafeUnpin for ResponseError
impl UnwindSafe for ResponseErrorwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.