netloc_core::reporter

Trait Reporter

Source
pub trait Reporter {
    type Error;

    // Required method
    fn report<'life0, 'life1, 'async_trait>(
        &'life0 self,
        data: &'life1 Data,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

An abstract way to report the Data.

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

Required Associated Types§

Source

type Error

The error that this reporter can produce.

Required Methods§

Source

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

Report the passed Data.

Implementors§