pub struct OperationHints {
pub parallel: bool,
pub min_responses: Option<u32>,
pub ordered: bool,
}Expand description
Execution hints for a single operation.
These hints control how code is generated for broadcast/collect operations.
Fields§
§parallel: boolExecute broadcast/collect operations in parallel using join_all.
min_responses: Option<u32>Minimum number of responses required for collect operations. If None, all responses are required.
ordered: boolPreserve message ordering (relevant for parallel operations). When true, results are returned in the order roles were resolved.
Implementations§
Source§impl OperationHints
impl OperationHints
Sourcepub fn parallel() -> OperationHints
pub fn parallel() -> OperationHints
Create hints for parallel execution.
Sourcepub fn with_min_responses(min: u32) -> OperationHints
pub fn with_min_responses(min: u32) -> OperationHints
Create hints with minimum responses requirement.
Sourcepub fn parallel_ordered() -> OperationHints
pub fn parallel_ordered() -> OperationHints
Create hints for ordered parallel execution.
Sourcepub fn with_parallel(self) -> OperationHints
pub fn with_parallel(self) -> OperationHints
Builder: enable parallel execution.
Sourcepub fn sequential(self) -> OperationHints
pub fn sequential(self) -> OperationHints
Builder: disable parallel execution (sequential).
Sourcepub fn set_min_responses(self, min: Option<u32>) -> OperationHints
pub fn set_min_responses(self, min: Option<u32>) -> OperationHints
Builder: set minimum responses.
Sourcepub fn with_ordered(self) -> OperationHints
pub fn with_ordered(self) -> OperationHints
Builder: enable ordered execution.
Sourcepub fn unordered(self) -> OperationHints
pub fn unordered(self) -> OperationHints
Builder: disable ordered execution.
Sourcepub fn merge(&self, other: &OperationHints) -> OperationHints
pub fn merge(&self, other: &OperationHints) -> OperationHints
Merge with another hints, taking non-default values.
Trait Implementations§
Source§impl Clone for OperationHints
impl Clone for OperationHints
Source§fn clone(&self) -> OperationHints
fn clone(&self) -> OperationHints
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more