Toolbox snapshot
The Reactive C++ Toolbox
|
#include <toolbox/net/RateLimit.hpp>
Public Member Functions | |
template<typename intervalT = Seconds> | |
constexpr | RateLimit (std::size_t limit, intervalT interval) noexcept |
~RateLimit ()=default | |
constexpr | RateLimit (const RateLimit &) noexcept=default |
constexpr RateLimit & | operator= (const RateLimit &) noexcept=default |
constexpr | RateLimit (RateLimit &&) noexcept=default |
constexpr RateLimit & | operator= (RateLimit &&) noexcept=default |
constexpr auto | limit () const noexcept |
constexpr auto | interval () const noexcept |
RateLimit represents a rate limit spanning an interval of one or more seconds. Rate limiters control the rate of requests sent or received over the network.
Definition at line 28 of file RateLimit.hpp.
|
inlineconstexprnoexcept |
Definition at line 31 of file RateLimit.hpp.
|
default |
|
constexprdefaultnoexcept |
Definition at line 47 of file RateLimit.hpp.
Definition at line 48 of file RateLimit.hpp.