Trait ClusterData

Source
pub trait ClusterData {
    // Required methods
    fn current_slot<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Slot> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn next_jito_validator<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Option<(Pubkey, Slot)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

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

Source

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

Implementors§