pub struct UnboundedMemoryPool { /* private fields */ }
Expand description
A MemoryPool
that enforces no limit
Trait Implementations§
source§impl Debug for UnboundedMemoryPool
impl Debug for UnboundedMemoryPool
source§impl Default for UnboundedMemoryPool
impl Default for UnboundedMemoryPool
source§fn default() -> UnboundedMemoryPool
fn default() -> UnboundedMemoryPool
Returns the “default value” for a type. Read more
source§impl MemoryPool for UnboundedMemoryPool
impl MemoryPool for UnboundedMemoryPool
source§fn grow(&self, _reservation: &MemoryReservation, additional: usize)
fn grow(&self, _reservation: &MemoryReservation, additional: usize)
source§fn shrink(&self, _reservation: &MemoryReservation, shrink: usize)
fn shrink(&self, _reservation: &MemoryReservation, shrink: usize)
Infallibly shrink the provided
reservation
by shrink
bytessource§fn register(&self, _consumer: &MemoryConsumer)
fn register(&self, _consumer: &MemoryConsumer)
Registers a new
MemoryConsumer
Read moresource§fn unregister(&self, _consumer: &MemoryConsumer)
fn unregister(&self, _consumer: &MemoryConsumer)
Auto Trait Implementations§
impl RefUnwindSafe for UnboundedMemoryPool
impl Send for UnboundedMemoryPool
impl Sync for UnboundedMemoryPool
impl Unpin for UnboundedMemoryPool
impl UnwindSafe for UnboundedMemoryPool
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