Enum kvarn_async::prelude::parse::RequestParseStage
source · pub enum RequestParseStage {
Method,
Path,
Version,
HeaderName(u32),
HeaderValue(u32),
}
Expand description
Stages of parsing a HTTP Request
.
Variants§
Method
We are parsing the Method
.
Path
We are parsing the Uri::path_and_query
part of the Uri
.
Version
We are parsing the Version
.
HeaderName(u32)
We are parsing a HeaderName
.
The number indicates the position of this name.
HeaderValue(u32)
We are parsing a HeaderValue
.
The number indicates the position of this value.
Implementations§
Trait Implementations§
source§impl Debug for RequestParseStage
impl Debug for RequestParseStage
source§impl Ord for RequestParseStage
impl Ord for RequestParseStage
source§fn cmp(&self, other: &RequestParseStage) -> Ordering
fn cmp(&self, other: &RequestParseStage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RequestParseStage
impl PartialEq for RequestParseStage
source§fn eq(&self, other: &RequestParseStage) -> bool
fn eq(&self, other: &RequestParseStage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RequestParseStage
impl PartialOrd for RequestParseStage
source§fn partial_cmp(&self, other: &RequestParseStage) -> Option<Ordering>
fn partial_cmp(&self, other: &RequestParseStage) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for RequestParseStage
impl StructuralPartialEq for RequestParseStage
Auto Trait Implementations§
impl RefUnwindSafe for RequestParseStage
impl Send for RequestParseStage
impl Sync for RequestParseStage
impl Unpin for RequestParseStage
impl UnwindSafe for RequestParseStage
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