pub struct Context {
pub accept_next: AtomicBool,
}
Fields§
§accept_next: AtomicBool
A same tcp stream can be used to serve multiple pages. Setting accept_next will continue
to use same connection. Make sure to set accept_next
to false if request
body is not read completely. It is passed to both Request struct.
Implementations§
Auto Trait Implementations§
impl !Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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