pub struct Config {
pub daemon_directory: PathBuf,
pub max_threads: usize,
pub daemon_url: String,
pub client_url: String,
}Expand description
Define godwit daemon config.
Fields§
§daemon_directory: PathBuf§max_threads: usize§daemon_url: String§client_url: StringImplementations§
Source§impl Config
impl Config
pub fn get_daemon_directory(&self) -> PathBuf
pub fn get_max_threads(&self) -> usize
pub fn get_daemon_url(&self) -> String
pub fn get_client_url(&self) -> String
Source§impl Config
impl Config
Sourcepub fn init(
daemon_directory: Option<PathBuf>,
max_threads: Option<usize>,
tcp_port: Option<String>,
) -> Self
pub fn init( 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>
Sourcepub fn get_patched_rev(
&self,
application: &str,
file_name: &str,
) -> Result<Value, RevisionError>
pub fn get_patched_rev( &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>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more