use_api

Macro use_api 

Source
macro_rules! use_api {
    ($fs:path, $server:path) => { ... };
    () => { ... };
}
Expand description

Defines local filesystem API aliases with generated permissions.

The zero-argument form expands to:

  • FileSystem = fs::FileSystem<FileSystemPermissions>
  • File = fs::File<FileSystemPermissions>
  • Dir = fs::Dir<FileSystemPermissions>

Use this from an app crate before constructing a FileSystem handle.