CheckpointStreamingClient

Trait CheckpointStreamingClient 

Source
pub trait CheckpointStreamingClient {
    // Required method
    fn connect<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<CheckpointStream>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn latest_checkpoint_number<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Trait representing a client for streaming checkpoint data.

Required Methods§

Source

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

Returns the CheckpointStream and chain id.

Provided Methods§

Source

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

Returns the latest checkpoint number available from the streaming source.

Implementors§