Skip to content

Commit d8031bf

Browse files
00xcbergwolf
authored andcommitted
abi: properly document OpenOptions flags
Add comments to the OpenOptions bitflag struct so that they show up in the generated documentation. Signed-off-by: Carlos <[email protected]>
1 parent 6d1f933 commit d8031bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/abi/fuse_abi.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,15 @@ bitflags! {
9999
/// Options controlling the behavior of files opened by the server in response
100100
/// to an open or create request.
101101
pub struct OpenOptions: u32 {
102+
/// Bypass page cache for this open file.
102103
const DIRECT_IO = FOPEN_DIRECT_IO;
104+
/// Don't invalidate the data cache on open.
103105
const KEEP_CACHE = FOPEN_KEEP_CACHE;
106+
/// The file is not seekable.
104107
const NONSEEKABLE = FOPEN_NONSEEKABLE;
108+
/// allow caching this directory
105109
const CACHE_DIR = FOPEN_CACHE_DIR;
110+
/// the file is stream-like (no file position at all)
106111
const STREAM = FOPEN_STREAM;
107112
}
108113
}

0 commit comments

Comments
 (0)