pub trait GrantReleaser: Send + Sync {
// Required methods
fn release(&self, size: usize, region: MemoryRegion);
fn try_allocate_raw(&self, size: usize, region: MemoryRegion) -> bool;
}Expand description
Trait for releasing memory grants.
This allows the MemoryGrant to release memory without directly depending on the full BufferManager type.
Required Methods§
Sourcefn release(&self, size: usize, region: MemoryRegion)
fn release(&self, size: usize, region: MemoryRegion)
Releases memory back to the manager.
Sourcefn try_allocate_raw(&self, size: usize, region: MemoryRegion) -> bool
fn try_allocate_raw(&self, size: usize, region: MemoryRegion) -> bool
Tries to allocate additional memory (for resize operations).