pub struct RateLimitBudget {
pub global_per_sec: f32,
pub per_source_min_gap_ms: u64,
}Expand description
Per-process rate-limit context surfaced alongside FetchPlan so an
agent can predict the politeness ceiling without a separate
doiget_capability_profile round-trip.
Fields§
§global_per_sec: f32Process-wide cap (matches RateLimits::HARD_CODED).
per_source_min_gap_ms: u64Per-source minimum gap between consecutive requests, ms.
Trait Implementations§
Source§impl Clone for RateLimitBudget
impl Clone for RateLimitBudget
Source§fn clone(&self) -> RateLimitBudget
fn clone(&self) -> RateLimitBudget
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 RateLimitBudget
impl Debug for RateLimitBudget
Source§impl Serialize for RateLimitBudget
impl Serialize for RateLimitBudget
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for RateLimitBudget
Auto Trait Implementations§
impl Freeze for RateLimitBudget
impl RefUnwindSafe for RateLimitBudget
impl Send for RateLimitBudget
impl Sync for RateLimitBudget
impl Unpin for RateLimitBudget
impl UnsafeUnpin for RateLimitBudget
impl UnwindSafe for RateLimitBudget
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