File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -41,39 +41,63 @@ use cfg_if::cfg_if;
41
41
libc_bitflags ! {
42
42
/// Configuration options for [`inotify_add_watch`](fn.inotify_add_watch.html).
43
43
pub struct AddWatchFlags : u32 {
44
+ /// File was accessed.
44
45
IN_ACCESS ;
46
+ /// File was modified.
45
47
IN_MODIFY ;
48
+ /// Metadata changed.
46
49
IN_ATTRIB ;
50
+ /// Writable file was closed.
47
51
IN_CLOSE_WRITE ;
52
+ /// Nonwritable file was closed.
48
53
IN_CLOSE_NOWRITE ;
54
+ /// File was opened.
49
55
IN_OPEN ;
56
+ /// File was moved from X.
50
57
IN_MOVED_FROM ;
58
+ /// File was moved to Y.
51
59
IN_MOVED_TO ;
60
+ /// Subfile was created.
52
61
IN_CREATE ;
62
+ /// Subfile was deleted.
53
63
IN_DELETE ;
64
+ /// Self was deleted.
54
65
IN_DELETE_SELF ;
66
+ /// Self was moved.
55
67
IN_MOVE_SELF ;
56
68
69
+ /// Backing filesystem was unmounted.
57
70
IN_UNMOUNT ;
71
+ /// Event queue overflowed.
58
72
IN_Q_OVERFLOW ;
73
+ /// File was ignored.
59
74
IN_IGNORED ;
60
75
76
+ /// Combination of `IN_CLOSE_WRITE` and `IN_CLOSE_NOWRITE`.
61
77
IN_CLOSE ;
78
+ /// Combination of `IN_MOVED_FROM` and `IN_MOVED_TO`.
62
79
IN_MOVE ;
63
80
81
+ /// Only watch the path if it is a directory.
64
82
IN_ONLYDIR ;
83
+ /// Don't follow symlinks.
65
84
IN_DONT_FOLLOW ;
66
85
86
+ /// Event occurred against directory.
67
87
IN_ISDIR ;
88
+ /// Only send event once.
68
89
IN_ONESHOT ;
90
+ /// All of the events.
69
91
IN_ALL_EVENTS ;
70
92
}
71
93
}
72
94
73
95
libc_bitflags ! {
74
96
/// Configuration options for [`inotify_init1`](fn.inotify_init1.html).
75
97
pub struct InitFlags : c_int {
98
+ /// Set the `FD_CLOEXEC` flag on the file descriptor.
76
99
IN_CLOEXEC ;
100
+ /// Set the `O_NONBLOCK` flag on the open file description referred to by the new file descriptor.
77
101
IN_NONBLOCK ;
78
102
}
79
103
}
Original file line number Diff line number Diff line change @@ -192,7 +192,6 @@ feature! {
192
192
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
193
193
feature ! {
194
194
#![ feature = "inotify" ]
195
- #[ allow( missing_docs) ]
196
195
pub mod inotify;
197
196
}
198
197
You can’t perform that action at this time.
0 commit comments