fidl_fuchsia_power_metrics

Trait RecorderProxyInterface

Source
pub trait RecorderProxyInterface: Send + Sync {
    type StartLoggingResponseFut: Future<Output = Result<RecorderStartLoggingResult, Error>> + Send;
    type StartLoggingForeverResponseFut: Future<Output = Result<RecorderStartLoggingForeverResult, Error>> + Send;
    type StopLoggingResponseFut: Future<Output = Result<bool, Error>> + Send;

    // Required methods
    fn start_logging(
        &self,
        client_id: &str,
        metrics: &[Metric],
        duration_ms: u32,
        output_samples_to_syslog: bool,
        output_stats_to_syslog: bool,
    ) -> Self::StartLoggingResponseFut;
    fn start_logging_forever(
        &self,
        client_id: &str,
        metrics: &[Metric],
        output_samples_to_syslog: bool,
        output_stats_to_syslog: bool,
    ) -> Self::StartLoggingForeverResponseFut;
    fn stop_logging(&self, client_id: &str) -> Self::StopLoggingResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn start_logging( &self, client_id: &str, metrics: &[Metric], duration_ms: u32, output_samples_to_syslog: bool, output_stats_to_syslog: bool, ) -> Self::StartLoggingResponseFut

Source

fn start_logging_forever( &self, client_id: &str, metrics: &[Metric], output_samples_to_syslog: bool, output_stats_to_syslog: bool, ) -> Self::StartLoggingForeverResponseFut

Source

fn stop_logging(&self, client_id: &str) -> Self::StopLoggingResponseFut

Implementors§