pub struct RoundRobinComposition;Expand description
Built-in engine-only composition: Round-robin placement and fixed capacity.
Trait Implementations§
Source§impl Clone for RoundRobinComposition
impl Clone for RoundRobinComposition
Source§fn clone(&self) -> RoundRobinComposition
fn clone(&self) -> RoundRobinComposition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RoundRobinComposition
Source§impl Debug for RoundRobinComposition
impl Debug for RoundRobinComposition
Source§impl Default for RoundRobinComposition
impl Default for RoundRobinComposition
Source§fn default() -> RoundRobinComposition
fn default() -> RoundRobinComposition
Returns the “default value” for a type. Read more
Source§impl ReplayComposition for RoundRobinComposition
impl ReplayComposition for RoundRobinComposition
type Metadata = ()
type Observation = NoEngineEvents
type AggregatedPlacement = AggregatedRoundRobinPlacement<()>
type DisaggregatedPlacement = PoolRoundRobinPlacement<()>
fn validate_spec(&self, spec: &ReplaySpec) -> ReplayResult<()>
fn create_aggregated_placement( &mut self, dp_size: u32, topology: Vec<WorkerTopology>, ) -> AnyResult<Self::AggregatedPlacement>
fn create_disaggregated_placements( &mut self, _prefill_dp_size: u32, prefill_topology: Vec<WorkerTopology>, _decode_dp_size: u32, decode_topology: Vec<WorkerTopology>, ) -> AnyResult<(Self::DisaggregatedPlacement, Self::DisaggregatedPlacement)>
Source§fn take_scaling_policy(
&mut self,
) -> AnyResult<Option<Box<dyn ReplayScalingPolicy>>>
fn take_scaling_policy( &mut self, ) -> AnyResult<Option<Box<dyn ReplayScalingPolicy>>>
Return the run-owned scaling policy, if this composition has one.
Source§fn set_determinism(
&mut self,
_determinism: ReplayDeterminism,
) -> ReplayResult<()>
fn set_determinism( &mut self, _determinism: ReplayDeterminism, ) -> ReplayResult<()>
Inform policy construction about explicitly requested deterministic
selection. Implementations should use
ReplayDeterminism::selector_seed and leave normal runs unseeded.Auto Trait Implementations§
impl Freeze for RoundRobinComposition
impl RefUnwindSafe for RoundRobinComposition
impl Send for RoundRobinComposition
impl Sync for RoundRobinComposition
impl Unpin for RoundRobinComposition
impl UnsafeUnpin for RoundRobinComposition
impl UnwindSafe for RoundRobinComposition
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