pub enum ServerEvent {
OnClientConnected(ConnectionId),
OnClientTimeout(ConnectionId),
OnClientDisconnected(ConnectionId),
}Variants§
OnClientConnected(ConnectionId)
Pushed to the server event queue when a client connects
OnClientTimeout(ConnectionId)
Pushed to the server event queue when a client times out
OnClientDisconnected(ConnectionId)
Pushes to the server event queue when a client is disconnected
Trait Implementations§
Source§impl Clone for ServerEvent
impl Clone for ServerEvent
Source§fn clone(&self) -> ServerEvent
fn clone(&self) -> ServerEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerEvent
impl Debug for ServerEvent
impl Copy for ServerEvent
Auto Trait Implementations§
impl Freeze for ServerEvent
impl RefUnwindSafe for ServerEvent
impl Send for ServerEvent
impl Sync for ServerEvent
impl Unpin for ServerEvent
impl UnwindSafe for ServerEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more