pub trait LimitByTime {
    // Required methods
    fn check_cache(&self, faucet: &mut Faucet, request_amount: u64) -> u64;
    fn datapoint_info(&self, request_amount: u64, new_total: u64);
}

Required Methods§

source

fn check_cache(&self, faucet: &mut Faucet, request_amount: u64) -> u64

source

fn datapoint_info(&self, request_amount: u64, new_total: u64)

Implementations on Foreign Types§

source§

impl LimitByTime for IpAddr

source§

fn check_cache(&self, faucet: &mut Faucet, request_amount: u64) -> u64

source§

fn datapoint_info(&self, request_amount: u64, new_total: u64)

source§

impl LimitByTime for Pubkey

source§

fn check_cache(&self, faucet: &mut Faucet, request_amount: u64) -> u64

source§

fn datapoint_info(&self, request_amount: u64, new_total: u64)

Implementors§