Expand description
Public runtime error types.
Errors are classified into four categories:
- Startup errors (
ServerError::Bind,ServerError::Config,ServerError::TlsSetup,ServerError::Startup) — returned to the caller before the listener is ready. - Lifecycle errors (
ServerError::AlreadyStarted,ServerError::NotStarted) — indicate misuse of the server handle or lifecycle state violations. - Runtime errors (
ServerError::Accept,ServerError::ShutdownTimeout) — occur during serving and are logged, not returned to callers. - Transport errors (
ServerError::Transport) — failures in response normalization or body conversion.
Enums§
- Server
Error - Errors from server startup and lifecycle operations.
- Shutdown
Result - Outcome of a server shutdown.