pub struct HeapConfig {
pub max_bytes: Option<usize>,
}Expand description
Configuration for the heap manager.
Fields§
§max_bytes: Option<usize>Maximum heap size in bytes. None means unlimited.
Implementations§
Source§impl HeapConfig
impl HeapConfig
Sourcepub fn with_limit(max_bytes: usize) -> Self
pub fn with_limit(max_bytes: usize) -> Self
Create a new heap configuration with a memory limit.
Trait Implementations§
Source§impl Clone for HeapConfig
impl Clone for HeapConfig
Source§fn clone(&self) -> HeapConfig
fn clone(&self) -> HeapConfig
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 HeapConfig
impl Debug for HeapConfig
Auto Trait Implementations§
impl Freeze for HeapConfig
impl RefUnwindSafe for HeapConfig
impl Send for HeapConfig
impl Sync for HeapConfig
impl Unpin for HeapConfig
impl UnwindSafe for HeapConfig
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