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§
Sourcefn dispatch(self: Box<Self>, cells: SolverCells<'_>)
fn dispatch(self: Box<Self>, cells: SolverCells<'_>)
Execute the request against a real cuSOLVER handle.
Provided Methods§
Sourcefn dispatch_mock(self: Box<Self>)
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.