pub enum ErrorCategory {
None,
Config,
Network,
Crypto,
Protocol,
Identity,
Storage,
Trust,
Internal,
}Expand description
ErrorCategory classifies an Error into the NWEP subsystem that
produced it.
Each variant corresponds to a group of error codes sharing the same
NWEP_ERR_CAT_* C constant. The category is determined automatically when
constructing an Error via Error::from_code.
The Display implementation produces the lowercase subsystem name (e.g.,
"network", "crypto") which is suitable for logging and structured
output.
Variants§
None
None indicates no error (code zero) or an unrecognized category.
Config
Config groups errors related to configuration file parsing and
validation.
Network
Network groups errors related to QUIC/UDP transport and socket
operations.
Crypto
Crypto groups errors related to key generation, signing, verification,
and TLS certificate handling.
Protocol
Protocol groups errors related to the NWEP application-layer protocol
framing, headers, and method/status validation.
Identity
Identity groups errors related to node identity records, challenge
authentication, and Shamir secret sharing.
Storage
Storage groups errors related to file I/O, key-value lookups, and
data integrity.
Trust
Trust groups errors related to the distributed trust log, Merkle
proofs, BLS checkpoints, and equivocation detection.
Internal
Internal groups errors that indicate bugs or unimplemented code paths
inside the C library itself.
Trait Implementations§
Source§impl Clone for ErrorCategory
impl Clone for ErrorCategory
Source§fn clone(&self) -> ErrorCategory
fn clone(&self) -> ErrorCategory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more