Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/security/test/sri/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 38 B image not shown  

Quelle  internal_pings.rs

  Sprache: Rust
 

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

use crate::metrics::PingType;

/// Glean-provided pings, all enabled by default.
///
/// These pings are defined in `glean-core/pings.yaml` and for now manually translated into Rust code.
/// This might get auto-generated when the Rust API lands ([Bug 1579146](https://bugzilla.mozilla.org/show_bug.cgi?id=1579146)).
///
/// They are parsed and registered by the platform-specific wrappers, but might be used Glean-internal directly.
#[derive(Debug, Clone)]
pub struct InternalPings {
    pub baseline: PingType,
    pub metrics: PingType,
    pub events: PingType,
    pub deletion_request: PingType,
}

impl InternalPings {
    pub fn new(enabled: bool) -> InternalPings {
        InternalPings {
            baseline: PingType::new(
                "baseline",
                true,
                true,
                true,
                true,
                enabled,
                vec![],
                vec![
                    "active".to_string(),
                    "dirty_startup".to_string(),
                    "inactive".to_string(),
                ],
                true,
            ),
            metrics: PingType::new(
                "metrics",
                true,
                false,
                true,
                true,
                enabled,
                vec![],
                vec![
                    "overdue".to_string(),
                    "reschedule".to_string(),
                    "today".to_string(),
                    "tomorrow".to_string(),
                    "upgrade".to_string(),
                ],
                true,
            ),
            events: PingType::new(
                "events",
                true,
                false,
                true,
                true,
                enabled,
                vec![],
                vec![
                    "startup".to_string(),
                    "inactive".to_string(),
                    "max_capacity".to_string(),
                ],
                true,
            ),
            deletion_request: PingType::new(
                "deletion-request",
                true,
                true,
                true,
                true,
                true// The deletion-request should not be disabled
                vec![],
                vec!["at_init".to_string(), "set_upload_enabled".to_string()],
                true,
            ),
        }
    }
}

Messung V0.5 in Prozent
C=79 H=98 G=88

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-06-23) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.