pub struct LoopConfig {
pub wait_when_empty: Option<bool>,
pub empty_poll_ms: Option<u64>,
pub wait_when_blocked: Option<bool>,
pub wait_poll_ms: Option<u64>,
pub wait_timeout_seconds: Option<u64>,
pub notify_when_unblocked: Option<bool>,
}Expand description
Run loop waiting configuration for daemon/continuous mode.
Fields§
§wait_when_empty: Option<bool>Wait when queue is empty instead of exiting (continuous/daemon mode).
empty_poll_ms: Option<u64>Poll interval in milliseconds while waiting for new tasks when queue is empty. Default: 30000 (30 seconds). Minimum: 50.
wait_when_blocked: Option<bool>Wait when blocked by dependencies/schedule instead of exiting.
wait_poll_ms: Option<u64>Poll interval in milliseconds while waiting for blocked tasks to become runnable. Default: 1000 (1 second). Minimum: 50.
wait_timeout_seconds: Option<u64>Timeout in seconds for waiting (0 = no timeout).
notify_when_unblocked: Option<bool>Send notification when queue transitions from blocked to runnable.
Implementations§
Source§impl LoopConfig
impl LoopConfig
pub fn merge_from(&mut self, other: Self)
Trait Implementations§
Source§impl Clone for LoopConfig
impl Clone for LoopConfig
Source§fn clone(&self) -> LoopConfig
fn clone(&self) -> LoopConfig
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 LoopConfig
impl Debug for LoopConfig
Source§impl Default for LoopConfig
impl Default for LoopConfig
Source§fn default() -> LoopConfig
fn default() -> LoopConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LoopConfigwhere
LoopConfig: Default,
impl<'de> Deserialize<'de> for LoopConfigwhere
LoopConfig: 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
Source§impl JsonSchema for LoopConfig
impl JsonSchema for LoopConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for LoopConfig
impl RefUnwindSafe for LoopConfig
impl Send for LoopConfig
impl Sync for LoopConfig
impl Unpin for LoopConfig
impl UnsafeUnpin for LoopConfig
impl UnwindSafe for LoopConfig
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