ExportDestination

Trait ExportDestination 

Source
pub trait ExportDestination: Send + Sync {
    // Required methods
    fn export_data<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        data: &'life1 [u8],
        filename: &'life2 str,
        content_type: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = RragResult<DestinationResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn destination_name(&self) -> &str;
    fn test_connection<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = RragResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Export destination trait

Required Methods§

Source

fn export_data<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, data: &'life1 [u8], filename: &'life2 str, content_type: &'life3 str, ) -> Pin<Box<dyn Future<Output = RragResult<DestinationResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn destination_name(&self) -> &str

Source

fn test_connection<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = RragResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§