Struct hyper::proto::h1::ParseContext
source · pub(crate) struct ParseContext<'a> {
cached_headers: &'a mut Option<HeaderMap>,
req_method: &'a mut Option<Method>,
h1_parser_config: ParserConfig,
h1_header_read_timeout: Option<Duration>,
h1_header_read_timeout_fut: &'a mut Option<Pin<Box<Sleep>>>,
h1_header_read_timeout_running: &'a mut bool,
preserve_header_case: bool,
h09_responses: bool,
}
Fields§
§cached_headers: &'a mut Option<HeaderMap>
§req_method: &'a mut Option<Method>
§h1_parser_config: ParserConfig
§h1_header_read_timeout: Option<Duration>
§h1_header_read_timeout_fut: &'a mut Option<Pin<Box<Sleep>>>
§h1_header_read_timeout_running: &'a mut bool
§preserve_header_case: bool
§h09_responses: bool
Auto Trait Implementations§
impl<'a> Freeze for ParseContext<'a>
impl<'a> !RefUnwindSafe for ParseContext<'a>
impl<'a> Send for ParseContext<'a>
impl<'a> Sync for ParseContext<'a>
impl<'a> Unpin for ParseContext<'a>
impl<'a> !UnwindSafe for ParseContext<'a>
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