Trait cuprate_consensus::__private::Database

source ·
pub trait Database: Service<BlockchainReadRequest, Response = BlockchainResponse, Error = BoxError, Future = Self::Future2> {
    type Future2: Future<Output = Result<Self::Response, Self::Error>> + Send + 'static;
}
Expand description

A type alias trait used to represent a database, so we don’t have to write tower::Service bounds everywhere.

Automatically implemented for:

tower::Service<BCReadRequest, Response = BCResponse, Error = tower::BoxError>

Required Associated Types§

source

type Future2: Future<Output = Result<Self::Response, Self::Error>> + Send + 'static

Implementors§

source§

impl<T: Service<BlockchainReadRequest, Response = BlockchainResponse, Error = BoxError>> Database for T
where T::Future: Future<Output = Result<Self::Response, Self::Error>> + Send + 'static,