[][src]Struct cosmwasm_vm::FileSystemCache

pub struct FileSystemCache { /* fields omitted */ }

Representation of a directory that contains compiled Wasm artifacts.

Implementations

impl FileSystemCache[src]

pub unsafe fn new<P: Into<PathBuf>>(path: P) -> Result<Self>[src]

Construct a new FileSystemCache around the specified directory. The contents of the cache are stored in sub-versioned directories.

Safety

This method is unsafe because there's no way to ensure the artifacts stored in this cache haven't been corrupted or tampered with.

pub fn load(&self, checksum: &Checksum) -> VmResult<Module>[src]

pub fn load_with_backend(
    &self,
    checksum: &Checksum,
    backend: &str
) -> VmResult<Module>
[src]

pub fn store(&mut self, checksum: &Checksum, module: Module) -> VmResult<()>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.