use crate::protocol::codec::Decode; use nom::IResult; #[allow(non_camel_case_types)] #[derive(Clone, Debug, PartialEq, Eq)] pub struct HTTP_MESSAGE { // TODO } impl HTTP_MESSAGE { pub fn new() -> HTTP_MESSAGE { HTTP_MESSAGE { // TODO } } } impl Decode for HTTP_MESSAGE { fn decode(input: &[u8]) -> IResult<&[u8], HTTP_MESSAGE> { let message = HTTP_MESSAGE::new(); // TODO Ok((input, message)) } }