Trait OperationsApi

Source
pub trait OperationsApi: Send + Sync {
    // Required methods
    fn retrieve_api_stats<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ApiStatsResponse, Error<RetrieveApiStatsError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn retrieve_metrics<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Value, Error<RetrieveMetricsError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn take_snapshot<'life0, 'async_trait>(
        &'life0 self,
        params: TakeSnapshotParams,
    ) -> Pin<Box<dyn Future<Output = Result<SuccessStatus, Error<TakeSnapshotError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn vote<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<SuccessStatus, Error<VoteError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn retrieve_api_stats<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ApiStatsResponse, Error<RetrieveApiStatsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn retrieve_metrics<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Value, Error<RetrieveMetricsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn take_snapshot<'life0, 'async_trait>( &'life0 self, params: TakeSnapshotParams, ) -> Pin<Box<dyn Future<Output = Result<SuccessStatus, Error<TakeSnapshotError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn vote<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<SuccessStatus, Error<VoteError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§