Struct datafusion::execution::memory_pool::MemoryReservation
source · pub struct MemoryReservation { /* private fields */ }
Expand description
A MemoryReservation
tracks a reservation of memory in a MemoryPool
that is freed back to the pool on drop
Implementations§
source§impl MemoryReservation
impl MemoryReservation
sourcepub fn free(&mut self) -> usize
pub fn free(&mut self) -> usize
Frees all bytes from this reservation returning the number of bytes freed
sourcepub fn try_resize(&mut self, capacity: usize) -> Result<(), DataFusionError>
pub fn try_resize(&mut self, capacity: usize) -> Result<(), DataFusionError>
Try to set the size of this reservation to capacity
Trait Implementations§
source§impl Debug for MemoryReservation
impl Debug for MemoryReservation
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryReservation
impl Send for MemoryReservation
impl Sync for MemoryReservation
impl Unpin for MemoryReservation
impl !UnwindSafe for MemoryReservation
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