pub struct ExecutorExecutionCapacityDeferral { /* private fields */ }Implementations§
Source§impl ExecutorExecutionCapacityDeferral
impl ExecutorExecutionCapacityDeferral
Sourcepub fn from_backing_pressure(
observed: ExecutorAdmissionEpochs,
wait_condition: CapacityWaitCondition,
pressure: DynamicBackingPressure,
stage: ExecutorExecutionCapacityStage,
) -> Result<Self>
pub fn from_backing_pressure( observed: ExecutorAdmissionEpochs, wait_condition: CapacityWaitCondition, pressure: DynamicBackingPressure, stage: ExecutorExecutionCapacityStage, ) -> Result<Self>
Construct a physical deferral for an executor that observes device or pool pressure directly rather than through Ferrum’s backing allocator.
pub fn from_admission( deferred: &AdmissionDeferred, stage: ExecutorExecutionCapacityStage, ) -> Result<Self>
Sourcepub fn from_pending_maintenance(
deferred: &AdmissionDeferred,
stage: ExecutorExecutionCapacityStage,
) -> Result<Self>
pub fn from_pending_maintenance( deferred: &AdmissionDeferred, stage: ExecutorExecutionCapacityStage, ) -> Result<Self>
Export an unresolved logical backing-growth decision after the executor’s bounded in-call maintenance attempts are exhausted.
This remains a pre-submit scheduling deferral. The bound controls only how much allocator maintenance one executor call may perform; it must not turn temporary capacity pressure into a terminal request failure.
Sourcepub fn from_backing(
deferred: &DynamicBackingDeferred,
stage: ExecutorExecutionCapacityStage,
) -> Result<Self>
pub fn from_backing( deferred: &DynamicBackingDeferred, stage: ExecutorExecutionCapacityStage, ) -> Result<Self>
Export unresolved physical backing pressure without discarding its exact pool/domain evidence.
Sourcepub fn with_relevant_maintenance_retry(
self,
attempts: u32,
receipts: &[DynamicPoolGrowthBatchReceipt],
pools: &[DynamicPoolStatus],
affected_request_ids: Vec<RequestId>,
) -> Result<Self>
pub fn with_relevant_maintenance_retry( self, attempts: u32, receipts: &[DynamicPoolGrowthBatchReceipt], pools: &[DynamicPoolStatus], affected_request_ids: Vec<RequestId>, ) -> Result<Self>
Attach a scheduler retry only when this call produced at least one real physical mutation relevant to the final blocker. An empty or unrelated receipt set is an ordinary typed wait, not an internal error.
pub fn from_admission_maintenance( source: &AdmissionDeferred, observed: ExecutorAdmissionEpochs, wait_condition: CapacityWaitCondition, pressure: DynamicBackingPressure, maintenance_boundary: Option<DynamicPoolMaintenanceBoundaryReceipt>, stage: ExecutorExecutionCapacityStage, ) -> Result<Self>
pub fn from_backing_maintenance( source: &DynamicBackingDeferred, observed: ExecutorAdmissionEpochs, wait_condition: CapacityWaitCondition, pressure: DynamicBackingPressure, maintenance_boundary: Option<DynamicPoolMaintenanceBoundaryReceipt>, stage: ExecutorExecutionCapacityStage, ) -> Result<Self>
pub const fn observed(&self) -> ExecutorAdmissionEpochs
pub fn wait_condition(&self) -> &CapacityWaitCondition
pub const fn stage(&self) -> ExecutorExecutionCapacityStage
pub const fn evidence(&self) -> &ExecutorExecutionCapacityEvidence
pub fn shortfalls(&self) -> &[CapacityShortfall]
pub fn backing_blockers(&self) -> &[DynamicBackingBlocker]
pub const fn backing_pressure(&self) -> Option<&DynamicBackingPressure>
pub const fn maintenance_boundary( &self, ) -> Option<&DynamicPoolMaintenanceBoundaryReceipt>
pub fn maintenance_retry(&self) -> Option<&ExecutorExecutionMaintenanceRetry>
Sourcepub fn validated_maintenance_retry_scope(
&self,
current_request_ids: &[RequestId],
) -> Result<Option<&ExecutorExecutionMaintenanceRetry>>
pub fn validated_maintenance_retry_scope( &self, current_request_ids: &[RequestId], ) -> Result<Option<&ExecutorExecutionMaintenanceRetry>>
Validate the bound retry scope against the authoritative logical frontiers in the current engine call.
Sourcepub fn narrower_prefill_tokens(&self, attempted_tokens: usize) -> Option<usize>
pub fn narrower_prefill_tokens(&self, attempted_tokens: usize) -> Option<usize>
Return a strictly smaller, capacity-informed prefill width.
This is a cold pressure-path hint, not allocator authority. The caller must probe the returned prefix through normal typed admission before any provider encode or device submission. A bounded reduction prevents a large frontier from producing an unbounded sequence of near-identical probes when the shortfall is small.
Trait Implementations§
Source§impl Clone for ExecutorExecutionCapacityDeferral
impl Clone for ExecutorExecutionCapacityDeferral
Source§fn clone(&self) -> ExecutorExecutionCapacityDeferral
fn clone(&self) -> ExecutorExecutionCapacityDeferral
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more