Enum websocket::codec::http::HttpCodecError
source · Expand description
Any error that can happen during the writing or parsing of HTTP requests
and responses. This consists of HTTP parsing errors (the Http
variant) and
errors that can occur when writing to IO (the Io
variant).
Variants
Io(Error)
An error that occurs during the writing or reading of HTTP data from a socket.
Http(Error)
An error that occurs during the parsing of an HTTP request or response.
Trait Implementations
sourceimpl Debug for HttpCodecError
impl Debug for HttpCodecError
sourceimpl Display for HttpCodecError
impl Display for HttpCodecError
sourceimpl Error for HttpCodecError
impl Error for HttpCodecError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<Error> for HttpCodecError
impl From<Error> for HttpCodecError
sourcefn from(err: Error) -> HttpCodecError
fn from(err: Error) -> HttpCodecError
Converts to this type from the input type.
sourceimpl From<Error> for HttpCodecError
impl From<Error> for HttpCodecError
sourcefn from(err: Error) -> HttpCodecError
fn from(err: Error) -> HttpCodecError
Converts to this type from the input type.
sourceimpl From<HttpCodecError> for HyperIntoWsError
impl From<HttpCodecError> for HyperIntoWsError
sourcefn from(src: HttpCodecError) -> Self
fn from(src: HttpCodecError) -> Self
Converts to this type from the input type.
sourceimpl From<HttpCodecError> for WebSocketError
impl From<HttpCodecError> for WebSocketError
sourcefn from(src: HttpCodecError) -> Self
fn from(src: HttpCodecError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for HttpCodecError
impl Send for HttpCodecError
impl Sync for HttpCodecError
impl Unpin for HttpCodecError
impl !UnwindSafe for HttpCodecError
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