Skip to main content

Module error

Module error 

Source
Expand description

Typed remote-system error.

Phase 5 of docs/full-port-plan.md. The historical TransportError::HandshakeRejected(String) and ad-hoc Result shapes get normalized into this single enum. Each variant has a RemoteErrorKind discriminant suitable for matching and per-kind metrics, plus a free-form message for diagnostics.

Existing callers continue to use TransportError directly; new code should prefer RemoteError and let ? convert. Phase 13 removes the legacy HandshakeRejected(String) once every call-site has migrated.

Structs§

RemoteError
Typed remote-system error.

Enums§

RemoteErrorKind
Stable discriminant for a RemoteError.