[][src]Struct krill::daemon::config::Config

pub struct Config {
    pub data_dir: PathBuf,
    pub rsync_base: Rsync,
    pub auth_token: Token,
    pub ca_refresh: u32,
    // some fields omitted
}

Global configuration for the Krill Server.

This will parse a default config file ('./defaults/krill.conf') unless another file is explicitly specified. Command line arguments may be used to override any of the settings in the config file.

Fields

data_dir: PathBufrsync_base: Rsyncauth_token: Tokenca_refresh: u32

Methods

impl Config[src]

pub fn socket_addr(&self) -> SocketAddr[src]

pub fn test_ssl(&self) -> bool[src]

pub fn https_cert_file(&self) -> PathBuf[src]

pub fn https_key_file(&self) -> PathBuf[src]

pub fn service_uri(&self) -> Https[src]

pub fn rrdp_base_uri(&self) -> Https[src]

pub fn ta_cert_uri(&self) -> Https[src]

pub fn use_ta(&self) -> bool[src]

impl Config[src]

pub fn test(data_dir: &PathBuf) -> Self[src]

pub fn pubd_test(data_dir: &PathBuf) -> Self[src]

pub fn get_config_filename() -> String[src]

pub fn create() -> Result<Self, ConfigError>[src]

Creates the config (at startup). Panics in case of issues.

pub fn init_logging(&self) -> Result<(), ConfigError>[src]

Trait Implementations

impl Debug for Config[src]

impl<'de> Deserialize<'de> for Config[src]

Auto Trait Implementations

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

impl RefUnwindSafe for Config

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err