pub struct DynamicPoolResidentPressure { /* private fields */ }Expand description
Exact pool-local resident ceiling observed while maintaining otherwise valid deferred backing.
Unlike device capacity pressure, this does not authorize a larger pool. It proves that existing resident owners must be released or a reusable cache entry must be evicted before the deferred transaction can be retried.
Implementations§
Source§impl DynamicPoolResidentPressure
impl DynamicPoolResidentPressure
pub fn new( pool_id: DynamicBackingPoolId, requested_bytes: u64, resident_bytes: u64, maximum_resident_bytes: u64, ) -> Result<Self, VNextError>
pub fn pool_id(&self) -> &DynamicBackingPoolId
pub const fn requested_bytes(&self) -> u64
pub const fn resident_bytes(&self) -> u64
pub const fn maximum_resident_bytes(&self) -> u64
pub const fn available_bytes(&self) -> u64
Trait Implementations§
Source§impl Clone for DynamicPoolResidentPressure
impl Clone for DynamicPoolResidentPressure
Source§fn clone(&self) -> DynamicPoolResidentPressure
fn clone(&self) -> DynamicPoolResidentPressure
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 DynamicPoolResidentPressure
impl Debug for DynamicPoolResidentPressure
impl Eq for DynamicPoolResidentPressure
Source§impl From<DynamicPoolResidentPressure> for DynamicBackingPressure
impl From<DynamicPoolResidentPressure> for DynamicBackingPressure
Source§fn from(pressure: DynamicPoolResidentPressure) -> Self
fn from(pressure: DynamicPoolResidentPressure) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DynamicPoolResidentPressure
Auto Trait Implementations§
impl Freeze for DynamicPoolResidentPressure
impl RefUnwindSafe for DynamicPoolResidentPressure
impl Send for DynamicPoolResidentPressure
impl Sync for DynamicPoolResidentPressure
impl Unpin for DynamicPoolResidentPressure
impl UnsafeUnpin for DynamicPoolResidentPressure
impl UnwindSafe for DynamicPoolResidentPressure
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