pub struct MemoryBudgetConfig {
pub soft_limit_bytes: usize,
pub hard_limit_bytes: usize,
pub emergency_limit_bytes: usize,
}Expand description
Configuration for memory budget enforcement.
Fields§
§soft_limit_bytes: usizeSoft limit in bytes — triggers Warning alert and suggests degradation.
Default: 8 MiB (enough for ~524K cells at 16 bytes each, i.e. ~540×970).
hard_limit_bytes: usizeHard limit in bytes — triggers Critical alert with aggressive degradation.
Default: 16 MiB.
emergency_limit_bytes: usizeEmergency limit in bytes — triggers Emergency alert, drop frames.
Default: 32 MiB.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryBudgetConfig
impl Clone for MemoryBudgetConfig
Source§fn clone(&self) -> MemoryBudgetConfig
fn clone(&self) -> MemoryBudgetConfig
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 MemoryBudgetConfig
impl Debug for MemoryBudgetConfig
Source§impl Default for MemoryBudgetConfig
impl Default for MemoryBudgetConfig
Source§impl PartialEq for MemoryBudgetConfig
impl PartialEq for MemoryBudgetConfig
impl Copy for MemoryBudgetConfig
impl Eq for MemoryBudgetConfig
impl StructuralPartialEq for MemoryBudgetConfig
Auto Trait Implementations§
impl Freeze for MemoryBudgetConfig
impl RefUnwindSafe for MemoryBudgetConfig
impl Send for MemoryBudgetConfig
impl Sync for MemoryBudgetConfig
impl Unpin for MemoryBudgetConfig
impl UnsafeUnpin for MemoryBudgetConfig
impl UnwindSafe for MemoryBudgetConfig
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