pub trait BaseParser:
PacketVariable
+ Clone
+ PartialEq
+ Debug {
// Required methods
fn parse(packet: &mut HPacket) -> Self;
fn append_to_packet(&self, packet: &mut HPacket);
fn get_direction() -> HDirection;
fn get_packet_name() -> String;
}
Required Methods§
fn parse(packet: &mut HPacket) -> Self
fn append_to_packet(&self, packet: &mut HPacket)
fn get_direction() -> HDirection
fn get_packet_name() -> String
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.