pub struct BackgroundTaskConfig {
pub enable_stats: bool,
pub stats_interval: Duration,
pub enable_cleanup: bool,
pub cleanup_interval: Duration,
}Expand description
Background task configuration
Fields§
§enable_stats: boolEnable background statistics collection
stats_interval: DurationStatistics collection interval
enable_cleanup: boolEnable background cleanup tasks
cleanup_interval: DurationCleanup task interval
Trait Implementations§
Source§impl Clone for BackgroundTaskConfig
impl Clone for BackgroundTaskConfig
Source§fn clone(&self) -> BackgroundTaskConfig
fn clone(&self) -> BackgroundTaskConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackgroundTaskConfig
impl Debug for BackgroundTaskConfig
Source§impl Default for BackgroundTaskConfig
impl Default for BackgroundTaskConfig
Source§impl<'de> Deserialize<'de> for BackgroundTaskConfig
impl<'de> Deserialize<'de> for BackgroundTaskConfig
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 BackgroundTaskConfig
impl RefUnwindSafe for BackgroundTaskConfig
impl Send for BackgroundTaskConfig
impl Sync for BackgroundTaskConfig
impl Unpin for BackgroundTaskConfig
impl UnsafeUnpin for BackgroundTaskConfig
impl UnwindSafe for BackgroundTaskConfig
Blanket Implementations§
impl<T> Allocation for T
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