1 2 3 4 5 6 7
use std::ops::ControlFlow; use super::connection::RemoteSystem; pub trait PacketHandler { fn on_user_packet(&mut self, bytes: &[u8], conn: &mut RemoteSystem) -> ControlFlow<()>; }