pub struct AgentVelocityConfig {
pub max_requests_per_agent: Option<u32>,
pub max_requests_per_session: Option<u32>,
pub window_secs: u64,
pub burst_factor: f64,
}Expand description
Configuration for the per-agent velocity guard.
Fields§
§max_requests_per_agent: Option<u32>Maximum requests per agent per window. None means unlimited.
max_requests_per_session: Option<u32>Maximum requests per session per window. None means unlimited.
window_secs: u64Window duration in seconds.
burst_factor: f64Burst factor (1.0 = no burst above steady rate).
Trait Implementations§
Source§impl Clone for AgentVelocityConfig
impl Clone for AgentVelocityConfig
Source§fn clone(&self) -> AgentVelocityConfig
fn clone(&self) -> AgentVelocityConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentVelocityConfig
impl Debug for AgentVelocityConfig
Auto Trait Implementations§
impl Freeze for AgentVelocityConfig
impl RefUnwindSafe for AgentVelocityConfig
impl Send for AgentVelocityConfig
impl Sync for AgentVelocityConfig
impl Unpin for AgentVelocityConfig
impl UnsafeUnpin for AgentVelocityConfig
impl UnwindSafe for AgentVelocityConfig
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