pub trait AcceleratorSession {
// Required method
fn backend_kind(&self) -> BackendKind;
// Provided method
fn execution_stats(&self) -> ExecutionStats { ... }
}Expand description
Shared session contract for caller-owned accelerator runtime state.
Required Methods§
Sourcefn backend_kind(&self) -> BackendKind
fn backend_kind(&self) -> BackendKind
Backend owned by this session.
Provided Methods§
Sourcefn execution_stats(&self) -> ExecutionStats
fn execution_stats(&self) -> ExecutionStats
Execution statistics accumulated by this session.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".