project strucute refactoring

This commit is contained in:
2026-03-25 20:08:13 +07:00
parent a213c01158
commit 037edaa7cd
18 changed files with 694 additions and 565 deletions
+9
View File
@@ -0,0 +1,9 @@
use bytes::BytesMut;
pub trait Parser {
type Error;
fn can_parse(bytes: &BytesMut) -> bool;
fn parse(bytes: &mut BytesMut) -> Result<Option<Self>, Self::Error>
where
Self: Sized;
}