pub struct CheckpointCapacityPolicy { /* private fields */ }Expand description
One aggregate cap for independently retained, allocator-aligned checkpoint extents, including in-flight and index-evicted but still pinned owners. Per-pool growth ceilings are alternatives within this cap, not additive reservations. This policy does not add request or sequence slots.
Implementations§
Source§impl CheckpointCapacityPolicy
impl CheckpointCapacityPolicy
pub fn new(maximum_retained_bytes: u64) -> Result<Self, VNextError>
pub const fn maximum_retained_bytes(&self) -> u64
Trait Implementations§
Source§impl Clone for CheckpointCapacityPolicy
impl Clone for CheckpointCapacityPolicy
Source§fn clone(&self) -> CheckpointCapacityPolicy
fn clone(&self) -> CheckpointCapacityPolicy
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 moreimpl Copy for CheckpointCapacityPolicy
Source§impl Debug for CheckpointCapacityPolicy
impl Debug for CheckpointCapacityPolicy
Source§impl<'de> Deserialize<'de> for CheckpointCapacityPolicy
impl<'de> Deserialize<'de> for CheckpointCapacityPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CheckpointCapacityPolicy
Source§impl PartialEq for CheckpointCapacityPolicy
impl PartialEq for CheckpointCapacityPolicy
Source§impl Serialize for CheckpointCapacityPolicy
impl Serialize for CheckpointCapacityPolicy
impl StructuralPartialEq for CheckpointCapacityPolicy
Auto Trait Implementations§
impl Freeze for CheckpointCapacityPolicy
impl RefUnwindSafe for CheckpointCapacityPolicy
impl Send for CheckpointCapacityPolicy
impl Sync for CheckpointCapacityPolicy
impl Unpin for CheckpointCapacityPolicy
impl UnsafeUnpin for CheckpointCapacityPolicy
impl UnwindSafe for CheckpointCapacityPolicy
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