pub struct PoolRoundRobinPlacement<Events: EngineEventBatch> { /* private fields */ }Implementations§
Source§impl<Events: EngineEventBatch> PoolRoundRobinPlacement<Events>
impl<Events: EngineEventBatch> PoolRoundRobinPlacement<Events>
pub fn new(workers: Vec<WorkerTopology>) -> Self
Trait Implementations§
Source§impl<Events: Debug + EngineEventBatch> Debug for PoolRoundRobinPlacement<Events>
impl<Events: Debug + EngineEventBatch> Debug for PoolRoundRobinPlacement<Events>
Source§impl<Request, Events> PlacementPolicy<Request> for PoolRoundRobinPlacement<Events>where
Request: RequestIdentity,
Events: EngineEventBatch,
impl<Request, Events> PlacementPolicy<Request> for PoolRoundRobinPlacement<Events>where
Request: RequestIdentity,
Events: EngineEventBatch,
type Metadata = ()
type Observation = Events
fn place( &mut self, request: &Request, _metadata: Self::Metadata, _session_id: Option<String>, _now_ms: f64, ) -> Result<PlacementEffects>
fn observe( &mut self, _observation: Events, _now_ms: f64, ) -> Result<Vec<Placement>>
fn cancel_pending(&mut self, _request_id: Uuid) -> bool
fn request_terminal( &mut self, _request_id: Uuid, _now_ms: f64, ) -> Result<Vec<Placement>>
fn prefill_completed( &mut self, _request_id: Uuid, _now_ms: f64, ) -> Result<Vec<Placement>>
fn pending_count(&self) -> usize
fn worker_ready( &mut self, worker: WorkerTopology, _now_ms: f64, ) -> Result<Vec<Placement>>
fn worker_draining( &mut self, worker: WorkerTopology, _now_ms: f64, ) -> Result<Vec<Placement>>
fn worker_removed( &mut self, worker: WorkerTopology, _now_ms: f64, ) -> Result<Vec<Placement>>
fn topology_settled(&mut self, _now_ms: f64) -> Result<Vec<Placement>>
Auto Trait Implementations§
impl<Events> Freeze for PoolRoundRobinPlacement<Events>where
PhantomData<Events>: Freeze,
impl<Events> RefUnwindSafe for PoolRoundRobinPlacement<Events>where
PhantomData<Events>: RefUnwindSafe,
impl<Events> Send for PoolRoundRobinPlacement<Events>where
PhantomData<Events>: Send,
impl<Events> Sync for PoolRoundRobinPlacement<Events>where
PhantomData<Events>: Sync,
impl<Events> Unpin for PoolRoundRobinPlacement<Events>where
PhantomData<Events>: Unpin,
impl<Events> UnsafeUnpin for PoolRoundRobinPlacement<Events>where
PhantomData<Events>: UnsafeUnpin,
impl<Events> UnwindSafe for PoolRoundRobinPlacement<Events>where
PhantomData<Events>: UnwindSafe,
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