pub enum Http1ConnectionState {
Waiting,
ReadingRequest,
ReadingHeaders,
ReadingBody,
Processing,
SendingResponse,
Closing,
Closed,
}Expand description
HTTP/1.1 连接状态
Variants§
Waiting
等待请求
ReadingRequest
读取请求
ReadingHeaders
读取头部
ReadingBody
读取请求体
Processing
处理请求
SendingResponse
发送响应
Closing
关闭中
Closed
已关闭
Trait Implementations§
Source§impl Clone for Http1ConnectionState
impl Clone for Http1ConnectionState
Source§fn clone(&self) -> Http1ConnectionState
fn clone(&self) -> Http1ConnectionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Http1ConnectionState
Source§impl Debug for Http1ConnectionState
impl Debug for Http1ConnectionState
impl Eq for Http1ConnectionState
Source§impl Hash for Http1ConnectionState
impl Hash for Http1ConnectionState
Source§impl PartialEq for Http1ConnectionState
impl PartialEq for Http1ConnectionState
impl StructuralPartialEq for Http1ConnectionState
Auto Trait Implementations§
impl Freeze for Http1ConnectionState
impl RefUnwindSafe for Http1ConnectionState
impl Send for Http1ConnectionState
impl Sync for Http1ConnectionState
impl Unpin for Http1ConnectionState
impl UnsafeUnpin for Http1ConnectionState
impl UnwindSafe for Http1ConnectionState
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