pub enum Error<E> {
InvalidHeaders,
InvalidBody,
TooManyHeaders,
TooLongHeaders,
TooLongBody,
IncompleteHeaders,
IncompleteBody,
InvalidState,
Timeout,
ConnectionClosed,
WsUpgradeError(UpgradeError),
Io(E),
}Expand description
An error in parsing the headers or the body.
Variants§
InvalidHeaders
InvalidBody
TooManyHeaders
TooLongHeaders
TooLongBody
IncompleteHeaders
IncompleteBody
InvalidState
Timeout
ConnectionClosed
WsUpgradeError(UpgradeError)
Io(E)
Trait Implementations§
source§impl<T, E> From<Error<T>> for HandleRequestError<T, E>
impl<T, E> From<Error<T>> for HandleRequestError<T, E>
source§impl<E> From<UpgradeError> for Error<E>
impl<E> From<UpgradeError> for Error<E>
source§fn from(e: UpgradeError) -> Self
fn from(e: UpgradeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<E>where
E: UnwindSafe,
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