Enum ntex::http::error::DecodeError
source · pub enum DecodeError {
Method,
Uri(InvalidUri),
Version,
Header,
TooLarge(usize),
Incomplete,
Status,
InvalidInput(&'static str),
Utf8(Utf8Error),
}
Expand description
A set of errors that can occur during parsing HTTP streams
Variants§
Method
An invalid Method
, such as GE.T
.
Uri(InvalidUri)
An invalid Uri
, such as exam ple.domain
.
Version
An invalid HttpVersion
, such as HTP/1.1
Header
An invalid Header
.
TooLarge(usize)
A message head is too large to be reasonable.
Incomplete
A message reached EOF, but is not complete.
Status
An invalid Status
, such as 1337 ELITE
.
InvalidInput(&'static str)
An InvalidInput
occurred while trying to parse incoming stream.
Utf8(Utf8Error)
Parsing a field as string failed
Trait Implementations§
source§impl Debug for DecodeError
impl Debug for DecodeError
source§impl Display for DecodeError
impl Display for DecodeError
source§impl Error for DecodeError
impl Error for DecodeError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<DecodeError> for PayloadError
impl From<DecodeError> for PayloadError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for ProtocolError
impl From<DecodeError> for ProtocolError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for SendRequestError
impl From<DecodeError> for SendRequestError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for WsClientError
impl From<DecodeError> for WsClientError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for DecodeError
impl From<Error> for DecodeError
source§fn from(err: Error) -> DecodeError
fn from(err: Error) -> DecodeError
Converts to this type from the input type.
source§impl From<FromUtf8Error> for DecodeError
impl From<FromUtf8Error> for DecodeError
source§fn from(err: FromUtf8Error) -> DecodeError
fn from(err: FromUtf8Error) -> DecodeError
Converts to this type from the input type.
source§impl From<InvalidUri> for DecodeError
impl From<InvalidUri> for DecodeError
source§fn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
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