pub struct ResolvedSecurity {
pub max_concurrent_handlers: u32,
pub per_source_rate_per_sec: f64,
pub per_source_burst: u32,
pub max_tracked_sources: usize,
}Expand description
Resolved security / rate-limiting fields.
Fields§
§max_concurrent_handlers: u32Global cap on concurrent in-flight QUIC handler tasks.
per_source_rate_per_sec: f64Per-source rate-limit refill (cells/second). 0.0 disables the
layer.
per_source_burst: u32Per-source rate-limit burst capacity. Ignored when
per_source_rate_per_sec == 0.0.
max_tracked_sources: usizeHard cap on the number of tracked sources in the keyed limiter.
Trait Implementations§
Source§impl Clone for ResolvedSecurity
impl Clone for ResolvedSecurity
Auto Trait Implementations§
impl Freeze for ResolvedSecurity
impl RefUnwindSafe for ResolvedSecurity
impl Send for ResolvedSecurity
impl Sync for ResolvedSecurity
impl Unpin for ResolvedSecurity
impl UnsafeUnpin for ResolvedSecurity
impl UnwindSafe for ResolvedSecurity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more