[][src]Struct godwit_daemon::config::Config

pub struct Config {
    pub daemon_directory: PathBuf,
    pub max_threads: usize,
    pub daemon_url: String,
    pub client_url: String,
}

Define godwit daemon config.

Fields

daemon_directory: PathBufmax_threads: usizedaemon_url: Stringclient_url: String

Implementations

impl Config[src]

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

pub fn get_max_threads(&self) -> usize[src]

pub fn get_daemon_url(&self) -> String[src]

pub fn get_client_url(&self) -> String[src]

impl Config[src]

pub fn init(
    daemon_directory: Option<PathBuf>,
    max_threads: Option<usize>,
    tcp_port: Option<String>
) -> Self
[src]

Returns new settings instance.

pub fn get_base_path(
    &self,
    application: &str,
    file_name: &str
) -> Option<PathBuf>
[src]

pub fn get_patched_rev(
    &self,
    application: &str,
    file_name: &str
) -> Result<Value, RevisionError>
[src]

Get patched revision for file of an application

pub fn save_patch_file<T>(
    &self,
    application: &str,
    file_name: &str,
    patch_content: T
) -> Result<(), PatchError> where
    T: Display + Serialize
[src]

Trait Implementations

impl Debug for Config[src]

impl Default for Config[src]

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

impl Serialize for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

Blanket Implementations

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

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

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

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

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 = Infallible

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<V, T> VZip<V> for T where
    V: MultiLane<T>,