pub struct ExecutionMemoryContextBuilder { /* private fields */ }Expand description
Builder for execution memory contexts with pre-allocation.
Implementations§
Source§impl ExecutionMemoryContextBuilder
impl ExecutionMemoryContextBuilder
Sourcepub fn new(manager: Arc<BufferManager>) -> Self
pub fn new(manager: Arc<BufferManager>) -> Self
Creates a new builder with the given buffer manager.
Sourcepub fn with_initial_allocation(self, size: usize) -> Self
pub fn with_initial_allocation(self, size: usize) -> Self
Sets the initial allocation size.
Sourcepub fn build(self) -> Option<ExecutionMemoryContext>
pub fn build(self) -> Option<ExecutionMemoryContext>
Builds the execution memory context.
Returns None if the initial allocation cannot be satisfied.
Auto Trait Implementations§
impl Freeze for ExecutionMemoryContextBuilder
impl !RefUnwindSafe for ExecutionMemoryContextBuilder
impl Send for ExecutionMemoryContextBuilder
impl Sync for ExecutionMemoryContextBuilder
impl Unpin for ExecutionMemoryContextBuilder
impl !UnwindSafe for ExecutionMemoryContextBuilder
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