pub enum ResponseError {
NotFoundStream,
ConnectionClosed,
Terminated,
Unknown(String),
Response(String),
WebSocketHandShake(String),
MethodNotSupported(String),
}
Expand description
Represents various errors that can occur during HTTP response processing.
Variants§
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.
Unknown(String)
Represents an unknown error with a message.
Response(String)
Represents a generic response error with a message.
WebSocketHandShake(String)
Represents an error during WebSocket handshake with a message.
MethodNotSupported(String)
Represents an error for an unsupported HTTP method with a message.
Trait Implementations§
Source§impl Clone for ResponseError
impl Clone for ResponseError
Source§fn clone(&self) -> ResponseError
fn clone(&self) -> ResponseError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResponseError
impl Debug for ResponseError
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 StdError
trait for ResponseError
.
This allows ResponseError
to be treated as a standard Rust error type.
impl Error for ResponseError
Implements the StdError
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for ResponseError
impl PartialEq for ResponseError
impl Eq for ResponseError
impl StructuralPartialEq for ResponseError
Auto Trait Implementations§
impl Freeze for ResponseError
impl RefUnwindSafe for ResponseError
impl Send for ResponseError
impl Sync for ResponseError
impl Unpin for ResponseError
impl UnwindSafe for ResponseError
Blanket Implementations§
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
Mutably borrows from an owned value. Read more