[][src]Trait naia_shared::Event

pub trait Event<T: EventType>: EventClone<T> {
    pub fn is_guaranteed(&self) -> bool;
pub fn write(&self, out_bytes: &mut Vec<u8>);
pub fn get_typed_copy(&self) -> T;
pub fn get_type_id(&self) -> TypeId; }

An Event is a struct of data that can be sent and recreated on the connected remote host

Required methods

pub fn is_guaranteed(&self) -> bool[src]

Whether the Event is guaranteed for eventual delivery to the remote host.

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

Writes the current Event into an outgoing packet's byte stream

pub fn get_typed_copy(&self) -> T[src]

Gets a copy of the Event, encapsulated within an EventType enum

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

Gets the TypeId of the Event

Loading content...

Implementors

Loading content...