pub struct ResourceLimits {
pub data_bytes: u64,
pub wal_bytes: u64,
pub tracked_pages: u32,
pub readers: u32,
pub record_bytes: u32,
pub recovery_bytes: u64,
}Fields§
§data_bytes: u64§wal_bytes: u64§tracked_pages: u32Maximum retired pages AND recycled pages tracked in one epoch.
readers: u32§record_bytes: u32§recovery_bytes: u64Space kept unavailable to normal writes for an operator’s recovery work. Crash restart itself needs no new data pages in this mode.
Implementations§
Source§impl ResourceLimits
impl ResourceLimits
pub fn validate(self) -> Result<Self>
pub fn freelist_bytes(self) -> u64
Sourcepub fn total_bytes(self) -> Result<u64>
pub fn total_bytes(self) -> Result<u64>
Maximum managed logical bytes, including both freelist candidates, fixed reader slots and unused recovery allowance. Filesystem metadata, allocation rounding, unrelated files and recovery exports are separate.
Sourcepub fn encode(self) -> Vec<u8> ⓘ
pub fn encode(self) -> Vec<u8> ⓘ
The 56-byte E4LIMIT1 policy record. Public so a format owner above
the kernel (typed collections on the page-WAL) persists the identical
bytes instead of a second encoding of the same six fields.
pub fn decode(b: &[u8]) -> Result<Self>
Trait Implementations§
Source§impl Clone for ResourceLimits
impl Clone for ResourceLimits
impl Copy for ResourceLimits
Source§impl Debug for ResourceLimits
impl Debug for ResourceLimits
impl Eq for ResourceLimits
Source§impl PartialEq for ResourceLimits
impl PartialEq for ResourceLimits
impl StructuralPartialEq for ResourceLimits
Auto Trait Implementations§
impl Freeze for ResourceLimits
impl RefUnwindSafe for ResourceLimits
impl Send for ResourceLimits
impl Sync for ResourceLimits
impl Unpin for ResourceLimits
impl UnsafeUnpin for ResourceLimits
impl UnwindSafe for ResourceLimits
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