pub struct DeviceCapacityPressure { /* private fields */ }Expand description
Exact device-wide pressure observed while trying to grow dynamic backing.
This is retry evidence, not an allocation authority. Plan-budget pressure can be paired with plan-local release epochs; process-wide pressure requires device-wide coordination. Contract and allocator failures remain terminal.
Implementations§
Source§impl DeviceCapacityPressure
impl DeviceCapacityPressure
pub fn new( scope: DeviceCapacityPressureScope, device_id: String, requested_bytes: u64, plan_claimed_bytes: u64, plan_usable_bytes: u64, process_claimed_bytes: u64, process_usable_bytes: u64, ) -> Result<Self, VNextError>
pub fn scope(&self) -> &DeviceCapacityPressureScope
pub fn device_id(&self) -> &str
pub const fn requested_bytes(&self) -> u64
pub const fn plan_claimed_bytes(&self) -> u64
pub const fn plan_usable_bytes(&self) -> u64
pub const fn process_claimed_bytes(&self) -> u64
pub const fn process_usable_bytes(&self) -> u64
pub const fn available_bytes(&self) -> u64
Trait Implementations§
Source§impl Clone for DeviceCapacityPressure
impl Clone for DeviceCapacityPressure
Source§fn clone(&self) -> DeviceCapacityPressure
fn clone(&self) -> DeviceCapacityPressure
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 moreSource§impl Debug for DeviceCapacityPressure
impl Debug for DeviceCapacityPressure
Source§impl Display for DeviceCapacityPressure
impl Display for DeviceCapacityPressure
impl Eq for DeviceCapacityPressure
Source§impl From<DeviceCapacityPressure> for DynamicBackingPressure
impl From<DeviceCapacityPressure> for DynamicBackingPressure
Source§fn from(pressure: DeviceCapacityPressure) -> Self
fn from(pressure: DeviceCapacityPressure) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeviceCapacityPressure
impl PartialEq for DeviceCapacityPressure
Source§impl Serialize for DeviceCapacityPressure
impl Serialize for DeviceCapacityPressure
impl StructuralPartialEq for DeviceCapacityPressure
Auto Trait Implementations§
impl Freeze for DeviceCapacityPressure
impl RefUnwindSafe for DeviceCapacityPressure
impl Send for DeviceCapacityPressure
impl Sync for DeviceCapacityPressure
impl Unpin for DeviceCapacityPressure
impl UnsafeUnpin for DeviceCapacityPressure
impl UnwindSafe for DeviceCapacityPressure
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