Expand description
Custom Algorithm implementations, held by name.
The built-in algorithms are looked up by a fixed list of names that a crate outside this one cannot add to. A registry carries the ones a caller brought, so a pool configuration naming one resolves the same way it resolves a built-in.
ⓘ
// In the deployment's binary:
let algorithms = AlgorithmRegistry::new().with_algorithm("my_algo", MyAlgorithm::new)?;
let solver = FyndBuilder::new(..).with_algorithms(algorithms).build()?;# In worker_pools.toml, exactly as a built-in is named:
[pools.mine]
algorithm = "my_algo"Structs§
- Algorithm
Registry - Algorithms a caller brought, keyed by the name a pool configuration uses to ask for one.
Enums§
- Register
Algorithm Error - Registering an algorithm under a name that is already taken.