fn new_with_cobalt_sender(cobalt_sender: CobaltSender) -> Self {
        Self {
            cobalt_sender: cobalt_sender,
            throttle_start_time: None,
            temperature_histogram: CobaltIntHistogram::new(CobaltIntHistogramConfig {
                floor: power_metrics_registry::RAW_TEMPERATURE_INT_BUCKETS_FLOOR,
                num_buckets: power_metrics_registry::RAW_TEMPERATURE_INT_BUCKETS_NUM_BUCKETS,
                step_size: power_metrics_registry::RAW_TEMPERATURE_INT_BUCKETS_STEP_SIZE,
            }),
        }
    }
/// Creates a new CobaltMetricsInner without connecting to the Cobalt FIDL service. Returns a
/// channel to receive the Cobalt events that would have otherwise been delivered to the Cobalt
/// service.
Creates a new CobaltMetricsInner without connecting to the Cobalt FIDL service. Returns a
channel to receive the Cobalt events that would have otherwise been delivered to the Cobalt
service.
Creates a new CobaltMetricsInner without connecting to the Cobalt FIDL service . Returns a channel to receive the Cobalt events that would have otherwise been delivered to the Cobalt service .
fn new_with_cobalt_sender(cobalt_sender: CobaltSender) -> Self {
        Self {
            cobalt_sender: cobalt_sender,
            throttle_start_time: None,
            temperature_histogram: CobaltIntHistogram::new(CobaltIntHistogramConfig {
                floor: power_metrics_registry::RAW_TEMPERATURE_INT_BUCKETS_FLOOR,
                num_buckets: power_metrics_registry::RAW_TEMPERATURE_INT_BUCKETS_NUM_BUCKETS,
                step_size: power_metrics_registry::RAW_TEMPERATURE_INT_BUCKETS_STEP_SIZE,
            }),
        }
    }
fn new_with_cobalt_sender ( cobalt_sender : CobaltSender ) -> Self { Self { cobalt_sender : cobalt_sender , throttle_start_time : None , temperature_histogram : CobaltIntHistogram :: new ( CobaltIntHistogramConfig { floor : power_metrics_registry :: RAW_TEMPERATURE_INT_BUCKETS_FLOOR , num_buckets : power_metrics_registry :: RAW_TEMPERATURE_INT_BUCKETS_NUM_BUCKETS , step_size : power_metrics_registry :: RAW_TEMPERATURE_INT_BUCKETS_STEP_SIZE , } ) , } }
Creates a new CobaltMetricsInner without connecting to the Cobalt FIDL service.
Creates a new CobaltMetricsInner without connecting to the Cobalt FIDL service .
cobalt_sender
CobaltSender
cobalt_sender
CobaltSender