pub struct SingleRingBuilder { /* private fields */ }Expand description
Builder for ExecutionModelV1::SingleRing specs.
This is intentionally small: it helps construct valid v1 specs without macros.
Implementations§
Source§impl SingleRingBuilder
impl SingleRingBuilder
Sourcepub fn ordering(&mut self, ordering: OrderingV1) -> &mut Self
pub fn ordering(&mut self, ordering: OrderingV1) -> &mut Self
Set requested ordering semantics.
Sourcepub fn producer(&mut self, producer: SingleRingProducerV1) -> &mut Self
pub fn producer(&mut self, producer: SingleRingProducerV1) -> &mut Self
Set requested producer model.
Sourcepub fn scheduling(&mut self, scheduling: SingleRingSchedulingV1) -> &mut Self
pub fn scheduling(&mut self, scheduling: SingleRingSchedulingV1) -> &mut Self
Set requested scheduling model.
Sourcepub fn shard_key(&mut self, shard_key: ShardKeyV1) -> &mut Self
pub fn shard_key(&mut self, shard_key: ShardKeyV1) -> &mut Self
Set the shard key extractor.
Sourcepub fn push_source_stage(&mut self, op: StageOpV1) -> Result<u32, SpecError>
pub fn push_source_stage(&mut self, op: StageOpV1) -> Result<u32, SpecError>
Add a stage that depends directly on the producer cursor.
Sourcepub fn push_stage(
&mut self,
op: StageOpV1,
depends_on: &[u32],
) -> Result<u32, SpecError>
pub fn push_stage( &mut self, op: StageOpV1, depends_on: &[u32], ) -> Result<u32, SpecError>
Add a stage with explicit dependencies.
depends_on contains stage indices; each dependency must reference a stage that has already
been added.
Sourcepub fn build(self) -> Result<PipelineSpecV1, SpecError>
pub fn build(self) -> Result<PipelineSpecV1, SpecError>
Build the full PipelineSpecV1.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SingleRingBuilder
impl RefUnwindSafe for SingleRingBuilder
impl Send for SingleRingBuilder
impl Sync for SingleRingBuilder
impl Unpin for SingleRingBuilder
impl UnwindSafe for SingleRingBuilder
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