Skip to main content

AcceleratorSession

Trait AcceleratorSession 

Source
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§

Source

fn backend_kind(&self) -> BackendKind

Backend owned by this session.

Provided Methods§

Source

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".

Implementors§