pub enum ServerEvent<S: SyncState> {
ClientConnected {
session_id: ServerSessionId,
client_public_key: [u8; 32],
},
StateUpdated {
session_id: ServerSessionId,
state: S,
},
ClientDisconnected {
session_id: ServerSessionId,
},
}Available on crate feature
server only.Expand description
Event from the server.
Variants§
ClientConnected
A new client has connected.
StateUpdated
Client state has been updated.
ClientDisconnected
A client has disconnected.
Fields
§
session_id: ServerSessionIdSession ID.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for ServerEvent<S>where
S: Freeze,
impl<S> RefUnwindSafe for ServerEvent<S>where
S: RefUnwindSafe,
impl<S> Send for ServerEvent<S>
impl<S> Sync for ServerEvent<S>
impl<S> Unpin for ServerEvent<S>where
S: Unpin,
impl<S> UnwindSafe for ServerEvent<S>where
S: UnwindSafe,
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