Skip to main content

PacketHandler

Trait PacketHandler 

Source
pub trait PacketHandler {
    const DEBUG: bool = false;

    // Provided methods
    fn handle_login_success(&mut self, _: LoginSuccess) -> Result<()> { ... }
    fn parse_and_handle(&mut self, bytes: &[u8]) -> Result<()> { ... }
}

Provided Associated Constants§

Source

const DEBUG: bool = false

Provided Methods§

Source

fn handle_login_success(&mut self, _: LoginSuccess) -> Result<()>

Source

fn parse_and_handle(&mut self, bytes: &[u8]) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§