Skip to main content

Module error

Module error 

Source
Expand description

Errors produced by server-level operations.

See apimock_routing::error for the rationale on per-crate error types. ServerError wraps ConfigError via #[from] because server startup calls Config::new on the user’s behalf.

§#[non_exhaustive] and kind() (RFC 041)

ServerError is #[non_exhaustive] and gains kind() / ServerErrorKind, one variant per ServerError variant — no delegation into ConfigErrorKind for the wrapped Config variant, same reasoning as WorkspaceError’s in apimock_config::error. No variant here carries a toml::de::Error, so nothing in this enum needed boxing — apimock_config::error’s module doc has the full reasoning for the two variants (elsewhere) that did.

Enums§

ServerError
ServerErrorKind
ServerError’s failure class.
TlsKind

Type Aliases§

ServerResult