[][src]Trait sc_service::client::light::blockchain::ProvideCache

pub trait ProvideCache<Block> where
    Block: Block
{ fn cache(&self) -> Option<Arc<dyn Cache<Block> + 'static>>; }

Provides access to the optional cache.

Required methods

fn cache(&self) -> Option<Arc<dyn Cache<Block> + 'static>>

Returns data cache reference, if it is enabled on this backend.

Loading content...

Implementations on Foreign Types

impl<Block> ProvideCache<Block> for BlockchainDb<Block> where
    Block: Block
[src]

impl<Block> ProvideCache<Block> for Blockchain<Block> where
    Block: Block
[src]

Loading content...

Implementors

impl<B, E, Block, RA> ProvideCache<Block> for Client<B, E, Block, RA> where
    B: Backend<Block>,
    Block: BlockT
[src]

impl<S: Storage<Block>, Block: BlockT> ProvideCache<Block> for sc_service::client::light::blockchain::Blockchain<S>[src]

Loading content...