Trait netloc_core::reporter::Reporter[][src]

pub trait Reporter {
    type Error;
#[must_use]    fn report<'life0, 'life1, 'async_trait>(
        &'life0 self,
        data: &'life1 Data
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

An abstract way to report the Data.

Implement this to send the IP address updates to a new detination.

Associated Types

type Error[src]

The error that this reporter can produce.

Loading content...

Required methods

#[must_use]fn report<'life0, 'life1, 'async_trait>(
    &'life0 self,
    data: &'life1 Data
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Report the passed Data.

Loading content...

Implementors

Loading content...