[][src]Trait naia_shared::EventType

pub trait EventType: Clone {
    fn write(&mut self, buffer: &mut Vec<u8>);
fn get_type_id(&self) -> TypeId; }

An Enum with a variant for every Event that can be sent to a remote host

Required methods

fn write(&mut self, buffer: &mut Vec<u8>)

Writes the typed Event into an outgoing byte stream

fn get_type_id(&self) -> TypeId

Get the TypeId of the contained Event

Loading content...

Implementors

Loading content...