Skip to main content

Module error

Module error 

Source
Expand description

Top-level protocol error — a thin facade over the per-module error types.

Every module under this crate has its own error in foo/error.rs. This enum lifts those into one type via #[from] so callers that cross several layers can keep using ? without bespoke conversions.

Authors of new fallible code should prefer returning the module’s own error and let #[from] handle the lift; reserve direct construction of ProtocolError for the crate boundary (lib facade, generated code).

Enums§

ProtocolError
Crate-wide error facade. Every module error converts in via #[from].

Type Aliases§

Result
Convenience alias for Result<T, ProtocolError>.