pub struct RateLimitOptions {
pub max_find_node_rate_per_sec: u32,
pub burst: u32,
pub max_in_flight: usize,
pub request_timeout_secs: u64,
pub max_new_destinations_per_minute: u32,
pub max_response_rate_per_sec: u32,
pub max_response_bytes_per_sec: u64,
pub max_response_rate_per_source: u32,
pub metadata_pressure_floor_percent: u8,
pub max_replacements_per_minute: u32,
pub max_in_flight_per_subnet: usize,
}Expand description
Independent crawl and UDP-response budgets.
Fields§
§max_find_node_rate_per_sec: u32Maximum active find_node queries scheduled per second.
burst: u32Maximum query budget consumed in one scheduler tick.
max_in_flight: usizeMaximum total pending find_node transactions.
request_timeout_secs: u64Pending find_node timeout in seconds.
max_new_destinations_per_minute: u32Maximum never-before-probed destinations per minute.
max_response_rate_per_sec: u32Maximum outbound DHT response packets per second.
max_response_bytes_per_sec: u64Maximum encoded outbound DHT response bytes per second.
max_response_rate_per_source: u32Maximum response packets per source address per second.
metadata_pressure_floor_percent: u8Remaining query-rate percentage when Metadata pressure reaches 95%.
max_replacements_per_minute: u32Maximum FIFO replacements per minute after the pool has warmed.
max_in_flight_per_subnet: usizeMaximum pending find_node transactions per IP subnet.
Trait Implementations§
Source§impl Clone for RateLimitOptions
impl Clone for RateLimitOptions
Source§fn clone(&self) -> RateLimitOptions
fn clone(&self) -> RateLimitOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RateLimitOptions
impl Debug for RateLimitOptions
Auto Trait Implementations§
impl Freeze for RateLimitOptions
impl RefUnwindSafe for RateLimitOptions
impl Send for RateLimitOptions
impl Sync for RateLimitOptions
impl Unpin for RateLimitOptions
impl UnsafeUnpin for RateLimitOptions
impl UnwindSafe for RateLimitOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more