[−][src]Struct godwit_daemon::config::Config
Define godwit daemon config.
Fields
daemon_directory: PathBuf
max_threads: usize
daemon_url: String
client_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]
daemon_directory: Option<PathBuf>,
max_threads: Option<usize>,
tcp_port: Option<String>
) -> Self
Returns new settings instance.
pub fn get_base_path(
&self,
application: &str,
file_name: &str
) -> Option<PathBuf>
[src]
&self,
application: &str,
file_name: &str
) -> Option<PathBuf>
pub fn get_patched_rev(
&self,
application: &str,
file_name: &str
) -> Result<Value, RevisionError>
[src]
&self,
application: &str,
file_name: &str
) -> Result<Value, RevisionError>
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]
&self,
application: &str,
file_name: &str,
patch_content: T
) -> Result<(), PatchError> where
T: Display + Serialize,
Trait Implementations
impl Debug for Config
[src]
impl Default 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>,
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]
T: 'static + ?Sized,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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 = Infallible
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,