[][src]Trait naia_shared::EventType

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

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

Required methods

pub fn write(&self, buffer: &mut Vec<u8>)[src]

Writes the typed Event into an outgoing byte stream

pub fn get_type_id(&self) -> TypeId[src]

Get the TypeId of the contained Event

Loading content...

Implementors

Loading content...