Skip to main content

DynamicPoolMaintenanceController

Struct DynamicPoolMaintenanceController 

Source
pub struct DynamicPoolMaintenanceController<R>
where R: DeviceRuntime,
{ /* private fields */ }
Expand description

Plan-owner capability for changing physical dynamic-pool residency. It is created once during provisioning, is intentionally not Clone, and cannot be derived from any request, sequence, step, invocation, or static lease.

use ferrum_interfaces::vnext::{AdmittedRequestResources, DeviceRuntime};
fn request_cannot_mint<R: DeviceRuntime>(request: &AdmittedRequestResources<R>) {
    let _ = request.dynamic_pool_maintenance_controller();
}
use ferrum_interfaces::vnext::{DeviceRuntime, StaticProvisioningLease};
fn lease_cannot_mint<R: DeviceRuntime>(lease: &StaticProvisioningLease<R>) {
    let _ = lease.dynamic_pool_maintenance_controller();
}

Implementations§

Source§

impl<R> DynamicPoolMaintenanceController<R>
where R: DeviceRuntime,

Source

pub fn pool_ids(&self) -> impl ExactSizeIterator<Item = &DynamicBackingPoolId>

Source

pub fn status(&self) -> Result<DynamicPoolMaintenanceStatus, VNextError>

Returns one exact domain-to-pool and physical-capacity snapshot. The process-wide usable ceiling is the conservative minimum across all live plan budgets; plan claims remain separately visible.

Source

pub fn initialize_pool( &self, pool_id: &DynamicBackingPoolId, ) -> Result<Option<DynamicPoolGrowthReceipt>, VNextError>

Makes the core-derived runnable minimum resident. A second call is a no-op and returns None; it never creates a duplicate initial chunk.

Source

pub fn initialize_pools( &self, pool_ids: &[DynamicBackingPoolId], ) -> Result<DynamicPoolGrowthBatchReceipt, VNextError>

Initializes several pools in one canonical all-or-nothing publication.

Source

pub fn grow_pool( &self, pool_id: &DynamicBackingPoolId, requested_bytes: u64, ) -> Result<DynamicPoolGrowthReceipt, VNextError>

Adds one explicitly-sized resident chunk. The physical allocation is globally reserved before the runtime is called and published only after allocation, descriptor validation, and installation all succeed.

Source

pub fn grow_pools( &self, requests: Vec<DynamicPoolGrowthRequest>, ) -> Result<DynamicPoolGrowthBatchReceipt, VNextError>

Grows distinct pools under one global reservation and one capacity epoch publication. Input order is ignored; duplicate pools are rejected.

Source

pub fn maintain_for_admission_deferred( &self, deferred: &AdmissionDeferred, ) -> Result<DynamicDeferredMaintenanceOutcome, VNextError>

Materializes fit capacity that logical admission identified as growable but that immediate backing preparation does not yet claim.

Source

pub fn release_quarantined_chunks( &self, ) -> Result<DynamicPoolQuarantineReleaseReceipt, VNextError>

Explicitly releases only unclaimable quarantined chunks. Resident chunks and logical totals are unchanged; the returned grants are dropped after all pool locks have been released.

Auto Trait Implementations§

§

impl<R> !RefUnwindSafe for DynamicPoolMaintenanceController<R>

§

impl<R> !UnwindSafe for DynamicPoolMaintenanceController<R>

§

impl<R> Freeze for DynamicPoolMaintenanceController<R>
where Arc<DynamicPoolSet<R>>: Freeze,

§

impl<R> Send for DynamicPoolMaintenanceController<R>
where Arc<DynamicPoolSet<R>>: Send,

§

impl<R> Sync for DynamicPoolMaintenanceController<R>
where Arc<DynamicPoolSet<R>>: Sync,

§

impl<R> Unpin for DynamicPoolMaintenanceController<R>
where Arc<DynamicPoolSet<R>>: Unpin,

§

impl<R> UnsafeUnpin for DynamicPoolMaintenanceController<R>
where Arc<DynamicPoolSet<R>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V