Skip to main content

ComputeBackend

Trait ComputeBackend 

Source
pub trait ComputeBackend {
    // Required method
    fn step(&mut self, epoch: u64) -> Result<SimulationSnapshot, RuntimeError>;

    // Provided methods
    fn reconfigure(
        &mut self,
        _config: DiffusionConfig,
    ) -> Result<(), RuntimeError> { ... }
    fn shared_frames(&self) -> Option<SharedFrameBuffer> { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§