Skip to main content

AgentMetricRegistration

Trait AgentMetricRegistration 

Source
pub trait AgentMetricRegistration<RLC: RLComponentsTypes>: Sized {
    // Required method
    fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>;
}
Available on crate feature rl only.
Expand description

Trait to fake variadic generics for train step metrics.

Required Methods§

Source

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Register the metrics.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<M1, M2, M3, M4, M5, M6, RLC: RLComponentsTypes + 'static> AgentMetricRegistration<RLC> for (M1, M2, M3, M4, M5, M6)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input> + Adaptor<M2::Input> + Adaptor<M3::Input> + Adaptor<M4::Input> + Adaptor<M5::Input> + Adaptor<M6::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static, M4: Metric + Numeric + 'static, M5: Metric + Numeric + 'static, M6: Metric + Numeric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Source§

impl<M1, M2, M3, M4, M5, RLC: RLComponentsTypes + 'static> AgentMetricRegistration<RLC> for (M1, M2, M3, M4, M5)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input> + Adaptor<M2::Input> + Adaptor<M3::Input> + Adaptor<M4::Input> + Adaptor<M5::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static, M4: Metric + Numeric + 'static, M5: Metric + Numeric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Source§

impl<M1, M2, M3, M4, RLC: RLComponentsTypes + 'static> AgentMetricRegistration<RLC> for (M1, M2, M3, M4)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input> + Adaptor<M2::Input> + Adaptor<M3::Input> + Adaptor<M4::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static, M4: Metric + Numeric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Source§

impl<M1, M2, M3, RLC: RLComponentsTypes + 'static> AgentMetricRegistration<RLC> for (M1, M2, M3)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input> + Adaptor<M2::Input> + Adaptor<M3::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Source§

impl<M1, M2, RLC: RLComponentsTypes + 'static> AgentMetricRegistration<RLC> for (M1, M2)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input> + Adaptor<M2::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Source§

impl<M1, RLC: RLComponentsTypes + 'static> AgentMetricRegistration<RLC> for (M1,)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input>, M1: Metric + Numeric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Implementors§