Trait sc_light::blockchain::ProvideCache[][src]

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

Provides access to the optional cache.

Required methods

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

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

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

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

Loading content...