pub struct Control { /* private fields */ }Expand description
Borrow-free transport decision produced at the same boundary as response framing. Consumers never need to traverse materialized headers again.
Implementations§
Source§impl Control
impl Control
pub const fn new( version: u8, status: u16, body: ResponseBody, conn: Connection, peer: KeepAlive, ) -> Self
pub const fn connection(self) -> Connection
pub const fn is_reusable(self) -> bool
pub const fn timeout(self) -> Option<u64>
Trait Implementations§
impl Copy for Control
impl Eq for Control
impl StructuralPartialEq for Control
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnsafeUnpin for Control
impl UnwindSafe for Control
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