Struct kubos_service::Config[][src]

pub struct Config { /* fields omitted */ }

Service configuration structure

Methods

impl Config
[src]

Creates and parses configuration data. Service name is used as a key in the config file.

Returns the configured hosturl string in the following format (using IPv4 addresses) - 0.0.0.0:0000

Returns the service's configuration information in the toml::Value format. This will contain the ip/port if provided, along with any other configuration information found in the config file.

Examples

use kubos_service::Config;

let config = Config::new("example-service");
let raw = config.raw();
let bus = raw["bus"].as_str();

Performs a get on the raw config data

Arguments

key - Key of value to get from config

Trait Implementations

impl Debug for Config
[src]

Formats the value using the given formatter. Read more

impl Default for Config
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Config

impl Sync for Config