Skip to main content

naia_shared/handshake/
reject_reason.rs

1use naia_serde::SerdeInternal;
2
3/// Reason a server-side rejection occurred during the handshake.
4#[derive(SerdeInternal, Debug, PartialEq, Eq, Clone, Copy)]
5pub enum RejectReason {
6    /// The client's protocol ID did not match the server's compiled protocol.
7    ProtocolMismatch,
8    /// The server application explicitly rejected the client's auth message.
9    Auth,
10}