FileAccessControl

Type Alias FileAccessControl 

Source
pub type FileAccessControl = Arc<dyn Fn(Option<String>, String) -> Pin<Box<dyn Future<Output = StorageResult<bool>> + Send>> + Send + Sync>;
Expand description

Access control function type for file serving

Takes user ID (if authenticated) and file ID, returns whether access is allowed.

Aliased Typeยง

pub struct FileAccessControl { /* private fields */ }