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 !Freeze for UnboundedMemoryPool
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more