pub struct TasksConfig {
pub max_concurrent: usize,
pub viewable_window: usize,
pub task_timeout: u64,
}Expand description
Task executor pool configuration.
Fields§
§max_concurrent: usizeMaximum number of concurrently InProgress tasks (default 4).
viewable_window: usizeMaximum number of tasks returned by queries (default 16).
task_timeout: u64Per-task execution timeout in seconds (default 300).
Trait Implementations§
Source§impl Clone for TasksConfig
impl Clone for TasksConfig
Source§fn clone(&self) -> TasksConfig
fn clone(&self) -> TasksConfig
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 TasksConfig
impl Debug for TasksConfig
Source§impl Default for TasksConfig
impl Default for TasksConfig
Source§impl<'de> Deserialize<'de> for TasksConfigwhere
TasksConfig: Default,
impl<'de> Deserialize<'de> for TasksConfigwhere
TasksConfig: Default,
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 TasksConfig
impl RefUnwindSafe for TasksConfig
impl Send for TasksConfig
impl Sync for TasksConfig
impl Unpin for TasksConfig
impl UnsafeUnpin for TasksConfig
impl UnwindSafe for TasksConfig
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