Skip to main content

LimitSource

Trait LimitSource 

Source
pub trait LimitSource: Send + Sync {
    // Required methods
    fn provider(&self) -> &'static str;
    fn read(&self, now_ms: u64) -> Option<ProviderLimits>;
}
Expand description

A provider-specific reader. read must only use data the provider produced itself.

Required Methods§

Source

fn provider(&self) -> &'static str

Source

fn read(&self, now_ms: u64) -> Option<ProviderLimits>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§