naia-shared 0.25.0

Common functionality shared between naia-server & naia-client crates
Documentation
1
2
3
4
5
6
7
8
9
10
use naia_serde::SerdeInternal;

/// Reason a server-side rejection occurred during the handshake.
#[derive(SerdeInternal, Debug, PartialEq, Eq, Clone, Copy)]
pub enum RejectReason {
    /// The client's protocol ID did not match the server's compiled protocol.
    ProtocolMismatch,
    /// The server application explicitly rejected the client's auth message.
    Auth,
}