Skip to navigation

Struct Diagnostic Limits

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct DiagnosticLimits {Show 21 fields
    pub max_components: usize,
    pub max_counters: usize,
    pub max_events: usize,
    pub max_window_buckets: usize,
    pub max_extensions: usize,
    pub max_metadata_bytes: usize,
    pub max_identity_bytes: usize,
    pub max_detail_bytes: usize,
    pub max_correlation_bytes: usize,
    pub detail_pool_bytes: usize,
    pub detail_block_bytes: usize,
    pub max_queries: usize,
    pub max_query_components: usize,
    pub max_query_events: usize,
    pub max_query_counters: usize,
    pub max_query_window_buckets: usize,
    pub max_snapshot_bytes: usize,
    pub query_text_bytes: usize,
    pub max_projections: usize,
    pub max_projection_workspaces: usize,
    pub max_owned_bytes: usize,
}

Independent capacities of one diagnostic context. All backing allocations are admitted during startup; these limits are not a whole-process RSS ceiling.

Fields

max_components: usize

Active and retained closed registration slots shared by this context.

max_counters: usize

Declared lifetime code-counter slots shared by admitted components.

max_events: usize

Shared circular-history headers; zero retains summaries without event history.

max_window_buckets: usize

Aggregate outcome-bucket slots shared by admitted components.

max_extensions: usize

Registered extension descriptors across all retained components.

max_metadata_bytes: usize

Combined admitted component-key, ownership, and extension-description bytes.

max_identity_bytes: usize

Bytes admitted per component key or ownership string, at most 128.

max_detail_bytes: usize

Bytes copied or formatted per observation detail, at most 4096.

max_correlation_bytes: usize

Bytes admitted per request or session correlation field, at most 128.

detail_pool_bytes: usize

Payload-byte capacity of the shared detail pool, rounded down to whole blocks.

detail_block_bytes: usize

Payload bytes per reclaimable detail block, at least four for UTF-8 scalars.

max_queries: usize

Simultaneously leased query workspaces; zero disables reads and their pool.

max_query_components: usize

Maximum component rows materialized in one query page.

max_query_events: usize

Maximum recent-event rows materialized in one query page.

max_query_counters: usize

Code-counter rows materialized per page, independent of store reservations.

max_query_window_buckets: usize

Outcome buckets materialized per page, independent of store reservations.

max_snapshot_bytes: usize

Serialized bytes per query response, including its envelope and coverage.

query_text_bytes: usize

Text-arena bytes reserved for each leased query workspace.

max_projections: usize

Simultaneously registered callbacks; arbitrary callback captures are caller-owned.

max_projection_workspaces: usize

Concurrent publications with independent payload and callback-reference storage.

max_owned_bytes: usize

Startup ceiling for context backing allocations, excluding whole-process RSS.

Implementations

impl DiagnosticLimits

impl DiagnosticLimits

validate

pub fn validate(&self) -> Result<(), DiagnosticError>

Validate capacities and checked backing sizes without allocating a store.

Trait Implementations

impl Clone for DiagnosticLimits

impl Clone for DiagnosticLimits

clone

fn clone(&self) -> DiagnosticLimits

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for DiagnosticLimits

impl Debug for DiagnosticLimits

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for DiagnosticLimits

impl Default for DiagnosticLimits

default

fn default() -> Self

impl<'de> Deserialize<'de> for DiagnosticLimitswhere DiagnosticLimits: Default,

impl<'de> Deserialize<'de> for DiagnosticLimitswhere
    DiagnosticLimits: Default,

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl PartialEq for DiagnosticLimits

impl PartialEq for DiagnosticLimits

eq

fn eq(&self, other: &DiagnosticLimits) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for DiagnosticLimits

impl Serialize for DiagnosticLimits

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl Eq for DiagnosticLimits

impl Eq for DiagnosticLimits

impl StructuralPartialEq for DiagnosticLimits

impl StructuralPartialEq for DiagnosticLimits