Trait wasmer_cache::Cache [−][src]
pub trait Cache { type SerializeError: Error + Send + Sync; type DeserializeError: Error + Send + Sync; unsafe fn load(
&self,
store: &Store,
key: Hash
) -> Result<Module, Self::DeserializeError>; fn store(
&mut self,
key: Hash,
module: &Module
) -> Result<(), Self::SerializeError>; }
Expand description
A generic cache for storing and loading compiled wasm modules.
Associated Types
type SerializeError: Error + Send + Sync
[src]
type SerializeError: Error + Send + Sync
[src]The serialization error for the implementation
type DeserializeError: Error + Send + Sync
[src]
type DeserializeError: Error + Send + Sync
[src]The deserialization error for the implementation
Required methods
Implementors
impl Cache for FileSystemCache
[src]
impl Cache for FileSystemCache
[src]type DeserializeError = DeserializeError
type SerializeError = SerializeError
unsafe fn load(
&self,
store: &Store,
key: Hash
) -> Result<Module, Self::DeserializeError>
[src]
&self,
store: &Store,
key: Hash
) -> Result<Module, Self::DeserializeError>
fn store(
&mut self,
key: Hash,
module: &Module
) -> Result<(), Self::SerializeError>
[src]
&mut self,
key: Hash,
module: &Module
) -> Result<(), Self::SerializeError>