pub trait EventSignaler: Send + Sync {
    // Required methods
    fn signal_fetch<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn signal_done<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn signal_error<'life0, 'life1, 'async_trait>(
        &'life0 self,
        error: &'life1 str
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

EventSignaler supplies functions which FakeArchiveAccessor will call when events happen. The integration test must implement these functions.

Required Methods§

source

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

Called when Inspect data is requested and supplied over the ArchiveAccessor channel.

source

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

Called after all Inspect data is fetched, or an error occurs.

source

fn signal_error<'life0, 'life1, 'async_trait>( &'life0 self, error: &'life1 str ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Called to report an error condition.

Implementors§