pub struct DemoPolicy {Show 18 fields
pub session_ttl_secs: u64,
pub poll_interval_ms: u64,
pub run_timeout_secs: u64,
pub max_active_runs_global: u32,
pub max_active_runs_per_visitor: u32,
pub accepted_starts_per_token: u32,
pub accepted_starts_per_client_ip: u32,
pub accepted_start_window_secs: u64,
pub retained_runs_per_visitor: u32,
pub max_runs_per_session: u32,
pub max_tune_run_rows_global: u32,
pub max_json_body_bytes: u64,
pub max_sse_per_visitor: u32,
pub max_sse_global: u32,
pub sse_lifetime_secs: u64,
pub ordinary_request_concurrency: u32,
pub ordinary_request_timeout_secs: u64,
pub cleanup_interval_secs: u64,
}Expand description
Limits applied to the public simulator-only demo surface.
Fields§
§session_ttl_secs: u64Anonymous visitor-session lifetime.
poll_interval_ms: u64Simulator polling interval.
run_timeout_secs: u64Whole-run timeout.
max_active_runs_global: u32Active Demo tune limit across all visitors.
max_active_runs_per_visitor: u32Active Demo tune limit for one visitor.
accepted_starts_per_token: u32Accepted starts for one session token in the quota window.
accepted_starts_per_client_ip: u32Accepted starts for one client IP in the quota window.
accepted_start_window_secs: u64Window shared by both accepted-start quotas.
retained_runs_per_visitor: u32Completed runs retained for one visitor.
max_runs_per_session: u32Maximum total demo runs accepted for one visitor.
max_tune_run_rows_global: u32Current Demo-owned tune_runs row limit across all visitors.
max_json_body_bytes: u64Maximum JSON request-body size.
max_sse_per_visitor: u32Simultaneous SSE streams for one visitor.
max_sse_global: u32Simultaneous Demo SSE streams across all visitors.
sse_lifetime_secs: u64Absolute lifetime of one Demo SSE stream.
ordinary_request_concurrency: u32Concurrent ordinary, non-streaming Demo API requests.
ordinary_request_timeout_secs: u64Timeout for an ordinary, non-streaming Demo API request.
cleanup_interval_secs: u64Interval between Demo cleanup passes.
Implementations§
Trait Implementations§
Source§impl Clone for DemoPolicy
impl Clone for DemoPolicy
Source§fn clone(&self) -> DemoPolicy
fn clone(&self) -> DemoPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for DemoPolicy
impl ComposeSchema for DemoPolicy
impl Copy for DemoPolicy
Source§impl Debug for DemoPolicy
impl Debug for DemoPolicy
Source§impl Default for DemoPolicy
impl Default for DemoPolicy
Source§impl<'de> Deserialize<'de> for DemoPolicy
impl<'de> Deserialize<'de> for DemoPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for DemoPolicy
Source§impl JsonSchema for DemoPolicy
impl JsonSchema for DemoPolicy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for DemoPolicy
impl PartialEq for DemoPolicy
Source§fn eq(&self, other: &DemoPolicy) -> bool
fn eq(&self, other: &DemoPolicy) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DemoPolicy
impl Serialize for DemoPolicy
impl StructuralPartialEq for DemoPolicy
Auto Trait Implementations§
impl Freeze for DemoPolicy
impl RefUnwindSafe for DemoPolicy
impl Send for DemoPolicy
impl Sync for DemoPolicy
impl Unpin for DemoPolicy
impl UnsafeUnpin for DemoPolicy
impl UnwindSafe for DemoPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].