pub struct SchedulerConfig {
pub enabled: bool,
pub tick_interval: Option<u64>,
pub max_tasks_per_tick: Option<usize>,
}
Expand description
Scheduler configuration
Fields§
§enabled: bool
Enable the scheduler
tick_interval: Option<u64>
Scheduler tick interval in seconds
max_tasks_per_tick: Option<usize>
Maximum number of scheduled tasks to process per tick
Trait Implementations§
Source§impl Clone for SchedulerConfig
impl Clone for SchedulerConfig
Source§fn clone(&self) -> SchedulerConfig
fn clone(&self) -> SchedulerConfig
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 Debug for SchedulerConfig
impl Debug for SchedulerConfig
Source§impl Default for SchedulerConfig
impl Default for SchedulerConfig
Source§impl<'de> Deserialize<'de> for SchedulerConfig
impl<'de> Deserialize<'de> for SchedulerConfig
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 SchedulerConfig
impl RefUnwindSafe for SchedulerConfig
impl Send for SchedulerConfig
impl Sync for SchedulerConfig
impl Unpin for SchedulerConfig
impl UnwindSafe for SchedulerConfig
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