Skip to main content

BackoffContext

Trait BackoffContext 

Source
pub trait BackoffContext<K: Resource> {
    // Required methods
    fn metrics(&self) -> &Arc<ControllerMetrics>;
    async fn get_backoff(&self, obj_ref: ObjectRef<K>) -> Duration;
    async fn reset_backoff(&self, obj_ref: ObjectRef<K>);
}

Required Methods§

Source

fn metrics(&self) -> &Arc<ControllerMetrics>

Source

async fn get_backoff(&self, obj_ref: ObjectRef<K>) -> Duration

Source

async fn reset_backoff(&self, obj_ref: ObjectRef<K>)

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.

Implementors§

Source§

impl BackoffContext<Kanidm> for kaniop_operator::kanidm::controller::context::Context

Source§

impl<K> BackoffContext<K> for kaniop_operator::controller::context::Context<K>
where K: Resource<DynamicType = ()> + ResourceExt + Lookup + Clone + 'static, <K as Lookup>::DynamicType: Eq + Hash + Clone,