pub struct MemoryConfig {
pub active: bool,
pub execute: bool,
pub env_variable_name: String,
pub env_variable_min_val: u64,
pub env_variable_max_val: u64,
pub check_interval: u64,
}Expand description
Holds the data for the memory configuration check. The configuration is loaded from the .toml configuration file.
Fields§
§active: boolflag for deactivating the memory configuration check, primarily used for testing
execute: boolused for testing purposes to inhibit creation of thread
env_variable_name: Stringname of the environment variable to check
env_variable_min_val: u64minimum value of the environment variable
env_variable_max_val: u64maximum value of the environment variable
check_interval: u64check-interval in seconds
Trait Implementations§
Source§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§fn clone(&self) -> MemoryConfig
fn clone(&self) -> MemoryConfig
Returns a duplicate 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<'de> Deserialize<'de> for MemoryConfig
impl<'de> Deserialize<'de> for MemoryConfig
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 MemoryConfig
impl RefUnwindSafe for MemoryConfig
impl Send for MemoryConfig
impl Sync for MemoryConfig
impl Unpin for MemoryConfig
impl UnwindSafe for MemoryConfig
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