Struct clockwork_plugin_utils::PluginConfig
source · pub struct PluginConfig {
pub keypath: Option<String>,
pub libpath: Option<String>,
pub thread_count: usize,
pub transaction_timeout_threshold: u64,
pub worker_id: u64,
}Expand description
Plugin config.
Fields§
§keypath: Option<String>§libpath: Option<String>§thread_count: usize§transaction_timeout_threshold: u64§worker_id: u64Implementations§
source§impl PluginConfig
impl PluginConfig
sourcepub fn read_from<P: AsRef<Path>>(config_path: P) -> PluginResult<Self>
pub fn read_from<P: AsRef<Path>>(config_path: P) -> PluginResult<Self>
Read plugin from JSON file.
Trait Implementations§
source§impl Clone for PluginConfig
impl Clone for PluginConfig
source§fn clone(&self) -> PluginConfig
fn clone(&self) -> PluginConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PluginConfig
impl Debug for PluginConfig
source§impl Default for PluginConfig
impl Default for PluginConfig
source§impl<'de> Deserialize<'de> for PluginConfig
impl<'de> Deserialize<'de> for PluginConfig
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 RefUnwindSafe for PluginConfig
impl Send for PluginConfig
impl Sync for PluginConfig
impl Unpin for PluginConfig
impl UnwindSafe for PluginConfig
Blanket Implementations§
§impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + ?Sized,
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
§impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
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