Skip to main content

BackendFactory

Type Alias BackendFactory 

Source
pub type BackendFactory = fn(&Mount) -> Result<Box<dyn MemBackend>, InstantiateError>;
Expand description

Backend factory function pointer. Both flavours’ existing instantiate_*_backend functions match this signature, so the type alias is what bridges the dependency direction (memstead-base can’t depend on memstead-git-branch) without an extra trait. Stateless, Send + Sync + Copy.