[−][src]Struct krill::daemon::config::Config
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: PathBuf
rsync_base: Rsync
auth_token: Token
ca_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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,