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.
Implementations on Foreign Types
impl<Block> ProvideCache<Block> for Blockchain<Block> where
Block: Block,
[src]
impl<Block> ProvideCache<Block> for Blockchain<Block> where
Block: Block,
[src]Implementors
impl<S: Storage<Block>, Block: BlockT> ProvideCache<Block> for sc_light::blockchain::Blockchain<S>
[src]
impl<S: Storage<Block>, Block: BlockT> ProvideCache<Block> for sc_light::blockchain::Blockchain<S>
[src]