pub struct GreedyMemoryPool { /* private fields */ }Expand description
A MemoryPool that implements a greedy first-come first-serve limit.
This pool works well for queries that do not need to spill or have
a single spillable operator. See FairSpillPool if there are
multiple spillable operators that all will spill.
Implementations§
Trait Implementations§
source§impl Debug for GreedyMemoryPool
impl Debug for GreedyMemoryPool
source§impl MemoryPool for GreedyMemoryPool
impl MemoryPool for GreedyMemoryPool
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 GreedyMemoryPool
impl RefUnwindSafe for GreedyMemoryPool
impl Send for GreedyMemoryPool
impl Sync for GreedyMemoryPool
impl Unpin for GreedyMemoryPool
impl UnwindSafe for GreedyMemoryPool
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