diff options
| author | luwenpeng <[email protected]> | 2023-09-18 14:47:10 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2023-09-18 17:52:39 +0800 |
| commit | cb674f9e168b6e709136e17a5bc87d3925c6f479 (patch) | |
| tree | a735d755c1b653ae59b0b47d05ed720aa573f0b6 /src/protocol | |
| parent | 9387c343d38c00efb432cfb419a3c669f4d65b3a (diff) | |
[refactor] Event manager: Support triggering new events in event handle, Solve the problem of multiple borrowing
Diffstat (limited to 'src/protocol')
| -rw-r--r-- | src/protocol/http.rs | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/protocol/http.rs b/src/protocol/http.rs index 289b915..e8d33f0 100644 --- a/src/protocol/http.rs +++ b/src/protocol/http.rs @@ -1,24 +1,23 @@ use crate::protocol::codec::Decode; use nom::IResult; -#[allow(non_camel_case_types)] #[derive(Clone, Debug, PartialEq, Eq)] -pub struct HTTP_MESSAGE { +pub struct HttpMessage { // TODO } -impl HTTP_MESSAGE { - pub fn new() -> HTTP_MESSAGE { - HTTP_MESSAGE { +impl HttpMessage { + pub fn new() -> HttpMessage { + HttpMessage { // TODO } } } -impl Decode for HTTP_MESSAGE { - type Iterm = HTTP_MESSAGE; - fn decode(input: &[u8]) -> IResult<&[u8], HTTP_MESSAGE> { - let message = HTTP_MESSAGE::new(); +impl Decode for HttpMessage { + type Iterm = HttpMessage; + fn decode(input: &[u8]) -> IResult<&[u8], HttpMessage> { + let message = HttpMessage::new(); // TODO Ok((input, message)) } |
