#[repr(u8)]pub enum State {
Show 16 variants
None = 0,
RequestMethod = 1,
RequestUrl = 2,
RequestVersion = 3,
ResponseVersion = 4,
ResponseStatusCode = 5,
ResponseStatus = 6,
HeaderName = 7,
HeaderValue = 8,
ChunkLength = 9,
ChunkExtensionName = 10,
ChunkExtensionValue = 11,
ChunkData = 12,
MultipartData = 13,
UrlEncodedName = 14,
UrlEncodedValue = 15,
}Expand description
State listing in parsing order.
This is a helper type that will simplify state tracking in custom HttpHandler implementations.
Variants§
None = 0
RequestMethod = 1
Request method.
RequestUrl = 2
Request URL.
RequestVersion = 3
Request HTTP version.
ResponseVersion = 4
Response HTTP version.
ResponseStatusCode = 5
Response status code.
ResponseStatus = 6
Response status.
HeaderName = 7
Header name.
HeaderValue = 8
Header value.
ChunkLength = 9
Chunk length.
ChunkExtensionName = 10
Chunk extension name.
ChunkExtensionValue = 11
Chunk extension value.
ChunkData = 12
Chunk data.
MultipartData = 13
Multipart data.
UrlEncodedName = 14
URL encoded name.
UrlEncodedValue = 15
URL encoded value.
Trait Implementations§
impl Copy for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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