Function hrpc::server::filters::rate::rate_limit_global [−][src]
pub fn rate_limit_global<Err: CustomError + 'static>(
rate: Rate,
error: fn(_: Duration) -> Err
) -> impl Filter<Extract = (), Error = Rejection> + Sync + Send + Clone
Expand description
Creates a filter that will return an Err(error)
with error
generated with the provided error function if rate limited globally,
irregardless of client address.