pub trait BackendSessionHost: BackendRuntimeCache {
// Provided method
fn with_backend_session<R: Send>(
&mut self,
f: impl FnOnce(&mut dyn BackendSession) -> R + Send,
) -> R
where Self: TensorBackend + Sized { ... }
}Expand description
Backend execution-session entry points.
§Examples
use tenferro_tensor::BackendSessionHost;
fn accepts_session_host<B: BackendSessionHost>(_backend: &mut B) {}Provided Methods§
fn with_backend_session<R: Send>(
&mut self,
f: impl FnOnce(&mut dyn BackendSession) -> R + Send,
) -> Rwhere
Self: TensorBackend + Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".