DataFormatter

Trait DataFormatter 

Source
pub trait DataFormatter: Send + Sync {
    // Required methods
    fn format_metrics<'life0, 'life1, 'async_trait>(
        &'life0 self,
        metrics: &'life1 [Metric],
    ) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn format_health_report<'life0, 'life1, 'async_trait>(
        &'life0 self,
        report: &'life1 HealthReport,
    ) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn format_performance_report<'life0, 'life1, 'async_trait>(
        &'life0 self,
        report: &'life1 PerformanceReport,
    ) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn format_system_overview<'life0, 'life1, 'async_trait>(
        &'life0 self,
        overview: &'life1 SystemOverview,
    ) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn content_type(&self) -> &'static str;
    fn file_extension(&self) -> &'static str;
}
Expand description

Data formatter trait

Required Methods§

Source

fn format_metrics<'life0, 'life1, 'async_trait>( &'life0 self, metrics: &'life1 [Metric], ) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn format_health_report<'life0, 'life1, 'async_trait>( &'life0 self, report: &'life1 HealthReport, ) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn format_performance_report<'life0, 'life1, 'async_trait>( &'life0 self, report: &'life1 PerformanceReport, ) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn format_system_overview<'life0, 'life1, 'async_trait>( &'life0 self, overview: &'life1 SystemOverview, ) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn content_type(&self) -> &'static str

Source

fn file_extension(&self) -> &'static str

Implementors§