[][src]Trait naia_shared::EventBuilder

pub trait EventBuilder<T: EventType> {
    fn get_type_id(&self) -> TypeId;
fn build(&self, in_bytes: &[u8]) -> T; }

Handles the creation of new Events

Required methods

fn get_type_id(&self) -> TypeId

Gets the TypeId of the Event it is able to build

fn build(&self, in_bytes: &[u8]) -> T

Creates a new Event

Loading content...

Implementors

Loading content...