Skip to main content

SolverDispatch

Trait SolverDispatch 

Source
pub trait SolverDispatch: Send + 'static {
    // Required method
    fn dispatch(self: Box<Self>, cells: SolverCells<'_>);

    // Provided method
    fn dispatch_mock(self: Box<Self>) { ... }
}
Expand description

Trait implemented by every solver request. The actor turns the boxed trait object back into a typed launcher and forwards the runtime cells.

Required Methods§

Source

fn dispatch(self: Box<Self>, cells: SolverCells<'_>)

Execute the request against a real cuSOLVER handle.

Provided Methods§

Source

fn dispatch_mock(self: Box<Self>)

Reply with a “mock mode” error without touching the GPU. Default impl drops self so the caller’s oneshot closes; per-request impls override to send a typed Err.

Implementors§