Struct libracerd::Config [] [src]

pub struct Config {
    pub port: u16,
    pub secret_file: Option<String>,
    pub print_http_logs: bool,
    pub rust_src_path: Option<String>,
}

Configuration flags and values

This object contains all switches the consumer has control of.

Fields

port
secret_file
print_http_logs
rust_src_path

Methods

impl Config

fn new() -> Config

Build a default config object

fn read_secret_file(&self) -> String

Return contents of secret file

panics if self.secret_file is None or an error is encountered while reading the file.

Trait Implementations

Derived Implementations

impl Default for Config

fn default() -> Config

impl Debug for Config

fn fmt(&self, __arg_0: &mut Formatter) -> Result