Skip to main content

Configuration

Trait Configuration 

Source
pub trait Configuration:
    Default
    + Send
    + Sync
    + Debug
    + 'static {
    const NAME: &'static str;

    // Required methods
    fn ctx(&self) -> &CfgContext;
    fn set_ctx(&mut self, ctx: CfgContext);
}
Expand description

A value that can be stored in SharedCfg.

Required Associated Constants§

Source

const NAME: &'static str

Human-readable configuration name used in diagnostics.

Required Methods§

Source

fn ctx(&self) -> &CfgContext

Returns the shared context associated with this value.

Source

fn set_ctx(&mut self, ctx: CfgContext)

Associates this value with a shared configuration context.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Configuration for ClientConfig

Source§

const NAME: &str = "Http client configuration"

Source§

impl Configuration for HttpServiceConfig

Source§

const NAME: &str = "Http service configuration"

Source§

impl Configuration for IoConfig

Source§

const NAME: &'static str = "IO Configuration"

§

impl Configuration for ServiceConfig

§

const NAME: &'static str = "Http/2 service configuration"

Source§

impl Configuration for TlsConfig

Source§

const NAME: &'static str = "TLS Configuration"

Source§

impl Configuration for WebAppConfig

Source§

const NAME: &str = "Web app configuration"

Source§

impl Configuration for WsClientConfig

Source§

const NAME: &str = "WebSocket client configuration"