pub struct SectionMemoryConfig {
pub max_ram: Option<usize>,
pub tier: TierOverride,
}Expand description
Per-section memory configuration.
Allows power users to cap individual sections or pin them to a tier. Most users leave this at default (all sections auto-managed within the global memory budget).
Fields§
§max_ram: Option<usize>Hard cap on this section’s RAM usage (bytes).
None means the section participates in the global budget with no
per-section cap. The BufferManager decides when to spill.
tier: TierOverrideStorage tier override.
Trait Implementations§
Source§impl Clone for SectionMemoryConfig
impl Clone for SectionMemoryConfig
Source§fn clone(&self) -> SectionMemoryConfig
fn clone(&self) -> SectionMemoryConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SectionMemoryConfig
impl Debug for SectionMemoryConfig
Auto Trait Implementations§
impl Freeze for SectionMemoryConfig
impl RefUnwindSafe for SectionMemoryConfig
impl Send for SectionMemoryConfig
impl Sync for SectionMemoryConfig
impl Unpin for SectionMemoryConfig
impl UnsafeUnpin for SectionMemoryConfig
impl UnwindSafe for SectionMemoryConfig
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