pub struct GlobalMemoryPool {
pub small_stacks: Mutex<VecDeque<Stack>>,
pub medium_stacks: Mutex<VecDeque<Stack>>,
pub large_stacks: Mutex<VecDeque<Stack>>,
pub stats: GlobalPoolStats,
}
Expand description
Global memory pool for fallback allocation.
Fields§
§small_stacks: Mutex<VecDeque<Stack>>
Global pools by size class
medium_stacks: Mutex<VecDeque<Stack>>
§large_stacks: Mutex<VecDeque<Stack>>
§stats: GlobalPoolStats
Global statistics
Auto Trait Implementations§
impl !Freeze for GlobalMemoryPool
impl !RefUnwindSafe for GlobalMemoryPool
impl Send for GlobalMemoryPool
impl Sync for GlobalMemoryPool
impl Unpin for GlobalMemoryPool
impl UnwindSafe for GlobalMemoryPool
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