Trait CompiledContractCache

Source
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§