Skip to main content

Database

Trait Database 

Source
pub trait Database: Service<BlockchainReadRequest, Response = BlockchainResponse, Error = BoxError, Future: 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>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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