Enum naia_server::ServerEvent [−][src]
pub enum ServerEvent<T> {
Connection(UserKey),
Disconnection(UserKey, User),
Event(UserKey, T),
Command(UserKey, ActorKey, T),
Tick,
}An Event that is emitted as a result of some communication with a Client, or a Tick event
Variants
Connection(UserKey)Occurs when a new Client has successfully established a connection with the Server
Disconnection(UserKey, User)Occurs when the Server has lost connection to a Client, usually as the result of a timeout
Event(UserKey, T)An Event emitted to the Server from a Client
An Command emitted to the Server from a Client
A Tick Event, the duration between Tick events is defined in the Config object passed to the Server on initialization
Auto Trait Implementations
impl<T> RefUnwindSafe for ServerEvent<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for ServerEvent<T> where
T: RefUnwindSafe, impl<T> Send for ServerEvent<T> where
T: Send,
impl<T> Send for ServerEvent<T> where
T: Send, impl<T> Sync for ServerEvent<T> where
T: Sync,
impl<T> Sync for ServerEvent<T> where
T: Sync, impl<T> Unpin for ServerEvent<T> where
T: Unpin,
impl<T> Unpin for ServerEvent<T> where
T: Unpin, impl<T> UnwindSafe for ServerEvent<T> where
T: UnwindSafe,
impl<T> UnwindSafe for ServerEvent<T> where
T: UnwindSafe,