Skip to main content

Crate kerniq_core

Crate kerniq_core 

Source
Expand description

Core types shared by every Kerniq Server crate.

This crate sits at the bottom of the dependency graph and contains only what every other crate needs:

  • Error / Result — the framework error model and its JSON envelope (error module).
  • ServerConfig — programmatic, environment and file configuration (config module).
  • ServerError — failures while starting or running the server.

Application code normally uses these through kerniq_server::prelude.

Re-exports§

pub use config::ConfigError;
pub use config::ServerConfig;
pub use error::BoxError;
pub use error::Error;
pub use error::OptionExt;
pub use error::Result;
pub use error::ResultExt;

Modules§

config
Server configuration.
error
The Kerniq error model.

Enums§

ServerError
Errors raised while starting or running the HTTP server (as opposed to errors produced while handling a request).