pub enum FromClient {
RequestClusters,
JoinCluster,
LeaveCluster,
RequestKey,
SendPassword,
Move,
}Variants§
RequestClusters
Sends a list of names and IPs to whoever requested it.
JoinCluster
Gracefully disconnect the client and connects to the new cluster.
LeaveCluster
Gracefully disconnect the client.
RequestKey
Only works if the server doesn’t have a domain config. Sends the pub key. Ran if the cache key doesn’t match.
SendPassword
Encrypts the password and sends it.
Move
Moves the player’s position.
Auto Trait Implementations§
impl Freeze for FromClient
impl RefUnwindSafe for FromClient
impl Send for FromClient
impl Sync for FromClient
impl Unpin for FromClient
impl UnwindSafe for FromClient
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