pub struct SingleRingV1 {
pub shards: u32,
pub ordering: OrderingV1,
pub producer: SingleRingProducerV1,
pub scheduling: SingleRingSchedulingV1,
pub shard_key: ShardKeyV1,
pub stages: Vec<StageV1>,
}Expand description
SingleRing v1 spec: a stage DAG executed over one sequenced ring.
Stages are referenced by index. Dependencies are expressed as a list of stage indices.
v1 simplification: stages must be listed in topological order (all dependencies must reference a stage with a smaller index).
Fields§
§shards: u32Number of PerKey shards (rings) to run.
1 means a single unsharded ring.
ordering: OrderingV1Requested ordering semantics.
Note: OrderingV1::Strict is only valid when shards == 1 in v1.
producer: SingleRingProducerV1Requested producer model.
scheduling: SingleRingSchedulingV1Requested scheduling/consumption model.
shard_key: ShardKeyV1Deterministic sharding key extraction.
Only used when shards > 1.
stages: Vec<StageV1>Stages in execution order.
Trait Implementations§
Source§impl Clone for SingleRingV1
impl Clone for SingleRingV1
Source§fn clone(&self) -> SingleRingV1
fn clone(&self) -> SingleRingV1
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 SingleRingV1
impl Debug for SingleRingV1
Source§impl<'de> Deserialize<'de> for SingleRingV1
impl<'de> Deserialize<'de> for SingleRingV1
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 PartialEq for SingleRingV1
impl PartialEq for SingleRingV1
Source§impl Serialize for SingleRingV1
impl Serialize for SingleRingV1
impl Eq for SingleRingV1
impl StructuralPartialEq for SingleRingV1
Auto Trait Implementations§
impl Freeze for SingleRingV1
impl RefUnwindSafe for SingleRingV1
impl Send for SingleRingV1
impl Sync for SingleRingV1
impl Unpin for SingleRingV1
impl UnwindSafe for SingleRingV1
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