fn new() -> Self {
        let (cobalt_sender, sender_future) = CobaltConnector::default()
            .serve(ConnectionType::project_id(power_metrics_registry::PROJECT_ID));

        // Spawn the future that handles sending data to Cobalt
        fasync::Task::local(sender_future).detach();

        Self::new_with_cobalt_sender(cobalt_sender)
    }
/// Creates a new CobaltMetricsInner and connects to the Cobalt FIDL service.
Creates a new CobaltMetricsInner and connects to the Cobalt FIDL service.
Creates a new CobaltMetricsInner and connects to the Cobalt FIDL service .
fn new() -> Self {
        let (cobalt_sender, sender_future) = CobaltConnector::default()
            .serve(ConnectionType::project_id(power_metrics_registry::PROJECT_ID));
        // Spawn the future that handles sending data to Cobalt
        fasync::Task::local(sender_future).detach();
        Self::new_with_cobalt_sender(cobalt_sender)
    }
fn new ( ) -> Self { let ( cobalt_sender , sender_future ) = CobaltConnector :: default ( ) . serve ( ConnectionType :: project_id ( power_metrics_registry :: PROJECT_ID ) ) ; // Spawn the future that handles sending data to Cobalt fasync :: Task :: local ( sender_future ) . detach ( ) ; Self :: new_with_cobalt_sender ( cobalt_sender ) }
Creates a new CobaltMetricsInner and connects to the Cobalt FIDL service.
Creates a new CobaltMetricsInner and connects to the Cobalt FIDL service .