Skip to main content

Module error

Module error 

Source
Expand description

Error + status types for NAT traversal.

The public surface returns a single NatError so a caller never has to match on transport-internal error zoo. Each traversal method’s failure is captured as a MethodError and, when every method fails, aggregated into NatError::AllMethodsFailed carrying the per-method reasons — so an operator/agent can see exactly why each path was rejected without scraping logs.

Modules§

rpc_error_codes
Peer-RPC JSON-RPC error codes from the L7 peer-network spec (§7, §9). Exposed so a node building its RPC surface over dig-nat maps transport outcomes to the exact catalogued codes.

Structs§

MethodError
One traversal method’s failure, tagged with which method produced it.

Enums§

NatError
The single error type returned by the public crate::connect API.