pub trait MemorySessionExt: SessionExt {
// Provided methods
fn memory(&self) -> SessionGuard<'_, MemorySession> { ... }
fn allocator(&self) -> HostAllocatorRef { ... }
fn with_allocator(self, allocator: HostAllocatorRef) -> VortexSession { ... }
}Expand description
Extension trait for accessing session-scoped memory configuration.
Provided Methods§
Sourcefn memory(&self) -> SessionGuard<'_, MemorySession>
fn memory(&self) -> SessionGuard<'_, MemorySession>
Returns the memory session for this execution/session context.
Sourcefn allocator(&self) -> HostAllocatorRef
fn allocator(&self) -> HostAllocatorRef
Returns the configured host allocator for this execution/session context.
Sourcefn with_allocator(self, allocator: HostAllocatorRef) -> VortexSession
fn with_allocator(self, allocator: HostAllocatorRef) -> VortexSession
Configures the session to use allocator as its host allocator, mutating it in place and
returning it for chaining.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".