Skip to main content

RateLimitMap

Type Alias RateLimitMap 

Source
pub type RateLimitMap = Arc<RwLock<HashMap<IpAddr, Instant>>>;

Aliased Type§

pub struct RateLimitMap { /* private fields */ }

Trait Implementations§

Source§

impl FromRef<AppState> for RateLimitMap

Source§

fn from_ref(state: &AppState) -> Self

Converts to this type from a reference to the input type.