Trait AppSettings

Source
pub trait AppSettings {
    // Required methods
    fn new(net: NetSettings) -> Self;
    fn net(&self) -> &NetSettings;
}

Required Methods§

Source

fn new(net: NetSettings) -> Self

Construct the settings given known network settings.

Source

fn net(&self) -> &NetSettings

Get the network settings from the application settings.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§