AdaptiveTimingStrategy

Trait AdaptiveTimingStrategy 

Source
pub trait AdaptiveTimingStrategy: Send + Sync {
    // Required methods
    fn set_behavior_profile(&mut self, profile: BehaviorProfile);
    fn behavior_profile(&self) -> BehaviorProfile;
    fn calculate_delay(
        &mut self,
        domain: &str,
        request: &TimingRequest,
    ) -> Duration;
    fn record_outcome(&mut self, domain: &str, outcome: &TimingOutcome);
    fn snapshot(&self, domain: &str) -> Option<DomainTimingSnapshot>;
}
Expand description

Interface for adaptive timing controllers.

Required Methods§

Source

fn set_behavior_profile(&mut self, profile: BehaviorProfile)

Source

fn behavior_profile(&self) -> BehaviorProfile

Source

fn calculate_delay(&mut self, domain: &str, request: &TimingRequest) -> Duration

Source

fn record_outcome(&mut self, domain: &str, outcome: &TimingOutcome)

Source

fn snapshot(&self, domain: &str) -> Option<DomainTimingSnapshot>

Implementors§