Skip to main content

MemorySessionExt

Trait MemorySessionExt 

Source
pub trait MemorySessionExt: SessionExt {
    // Provided methods
    fn memory(&self) -> SessionGuard<'_, MemorySession> { ... }
    fn allocator(&self) -> BufferAllocatorRef { ... }
    fn with_allocator(self, allocator: BufferAllocatorRef) -> VortexSession { ... }
}
Expand description

Extension methods for session-scoped buffer allocation.

Provided Methods§

Source

fn memory(&self) -> SessionGuard<'_, MemorySession>

Returns the memory configuration.

Source

fn allocator(&self) -> BufferAllocatorRef

Returns the configured buffer allocator.

Source

fn with_allocator(self, allocator: BufferAllocatorRef) -> VortexSession

Configures the session allocator and returns the session.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§