Expand description
Error message constants to reduce allocations in error paths. Static strings are borrowed, avoiding heap allocations for common error cases.
Constantsยง
- ERR_
CLIENT_ NONCE_ NOT_ FOUND - ERR_
CLIENT_ PUBLIC_ NOT_ FOUND - ERR_
CLIENT_ SECRET_ NOT_ FOUND - ERR_
COMPRESSION_ FAILED - Compression errors
- ERR_
CONNECTION_ CLOSED - Connection errors
- ERR_
CONNECTION_ TIMEOUT - ERR_
DECOMPRESSION_ FAILED - ERR_
DECRYPTION_ FAILED - ERR_
DISPATCHER_ READ_ LOCK - ERR_
DISPATCHER_ WRITE_ LOCK - Dispatcher-related error messages
- ERR_
ENCRYPTION_ FAILED - Cryptographic errors
- ERR_
HANDSHAKE_ FAILED - ERR_
INVALID_ HEADER - Protocol validation errors
- ERR_
INVALID_ PACKET - ERR_
INVALID_ TIMESTAMP - ERR_
LOCK_ POISONED - ERR_
NONCE_ VERIFICATION_ FAILED - ERR_
OVERSIZED_ PACKET - ERR_
REPLAY_ ATTACK - ERR_
SECURITY_ ERROR - Security errors
- ERR_
SERVER_ NONCE_ NOT_ FOUND - ERR_
SERVER_ PUBLIC_ NOT_ FOUND - ERR_
SERVER_ SECRET_ NOT_ FOUND - ERR_
SERVER_ VERIFICATION_ FAILED - ERR_
SYSTEM_ TIME - Handshake-specific errors
- ERR_
TIMEOUT - ERR_
UNEXPECTED_ MESSAGE - ERR_
UNSUPPORTED_ VERSION - Protocol negotiation errors