Function hotshot_fakeapi::fake_solver::define_api

source ·
pub fn define_api<TYPES, State, VER>() -> Result<Api<State, ServerError, VER>, ApiError>
where TYPES: NodeType, State: 'static + Send + Sync + ReadState + WriteState, <State as ReadState>::State: Send + Sync + FakeSolverApi<TYPES>, VER: StaticVersionType + 'static,
Expand description

Defines the API for the Fake solver.

§Errors

Returns an error if any of the initialization operations fail.

§Panics

Panics when type conversion fails.