This PR makes Policy and Agent to be object safe. To do this, Policy trait is split into two traits, one for sampling (Policy) and the other for configuration (Configurable). With this change, Policy and Agent traits do not have any associated type, thus being object safe. This change may be useful when using trait objects for policy and agent.
This PR makes
Policy
andAgent
to be object safe. To do this,Policy
trait is split into two traits, one for sampling (Policy
) and the other for configuration (Configurable
). With this change,Policy
andAgent
traits do not have any associated type, thus being object safe. This change may be useful when using trait objects for policy and agent.