pub trait CompiledContractCache: Send + Sync {
    // Required methods
    fn put(&self, key: &CryptoHash, value: CompiledContract) -> Result<()>;
    fn get(&self, key: &CryptoHash) -> Result<Option<CompiledContract>>;

    // Provided method
    fn has(&self, key: &CryptoHash) -> Result<bool> { ... }
}
Expand description

Cache for compiled modules

Required Methods§

Provided Methods§

source

fn has(&self, key: &CryptoHash) -> Result<bool>

Trait Implementations§

source§

impl Debug for dyn CompiledContractCache

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§