Skip to main content

SaveResolver

Type Alias SaveResolver 

Source
pub type SaveResolver = Arc<dyn Fn(String) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send>> + Send + Sync>;
Expand description

Resolves a Lua-supplied relative path to the file save may rename the temporary to — the server’s containment rule, injected so this module knows nothing about upload roots.

Aliased Type§

pub struct SaveResolver { /* private fields */ }