Files
netrunner-proxy/core/src/parser.rs
T
2026-03-25 20:08:13 +07:00

10 lines
206 B
Rust

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;
}