Trait fuel_tx::Cacheable

source ·
pub trait Cacheable {
    // Required methods
    fn is_computed(&self) -> bool;
    fn precompute(&mut self, chain_id: &ChainId) -> Result<(), CheckError>;
}
Expand description

Entity support metadata computation to cache results.

Required Methods§

source

fn is_computed(&self) -> bool

source

fn precompute(&mut self, chain_id: &ChainId) -> Result<(), CheckError>

Computes the cache for the entity.

Implementors§