pub trait FileSource: Send + Sync {
// Required method
fn read(&self, path: &str) -> Option<Vec<u8>>;
}Expand description
Anything that can resolve a path string to bytes. Implementations
MUST be cheap to clone (we hold Arc<dyn FileSource>) and Send + Sync so they can live in mlua’s app-data across async tasks.