#[non_exhaustive]pub struct SourceRate {
pub min_interval_ms: u64,
pub max_concurrent: u32,
}Expand description
A vendor-published rate guideline stricter than the global cap.
Library constants selected by source key, never caller-supplied:
docs/LEGAL.md §6a safeguard 5 makes RateLimits unsynthesizable by
downstream code on purpose, and a per-source table that took values from
a caller would hand back exactly what that safeguard withholds.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_interval_ms: u64Minimum milliseconds between two requests to this source.
max_concurrent: u32Maximum simultaneous requests to this source.
Trait Implementations§
Source§impl Clone for SourceRate
impl Clone for SourceRate
Source§fn clone(&self) -> SourceRate
fn clone(&self) -> SourceRate
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 moreimpl Copy for SourceRate
Auto Trait Implementations§
impl Freeze for SourceRate
impl RefUnwindSafe for SourceRate
impl Send for SourceRate
impl Sync for SourceRate
impl Unpin for SourceRate
impl UnsafeUnpin for SourceRate
impl UnwindSafe for SourceRate
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