@@ -53,7 +53,7 @@ pub use libc::read;
53
53
/// [execve(2)]: http://man7.org/linux/man-pages/man2/execve.2.html
54
54
/// [open(2)]: http://man7.org/linux/man-pages/man2/open.2.html
55
55
/// [fcntl(2)]: http://man7.org/linux/man-pages/man2/fcntl.2.html
56
- pub static IN_CLOEXEC : c_int = 0o2000000 ;
56
+ pub const IN_CLOEXEC : c_int = 0o2000000 ;
57
57
58
58
/// Flag: Set the O_NONBLOCK file status flag
59
59
///
@@ -81,15 +81,15 @@ pub static IN_CLOEXEC : c_int = 0o2000000;
81
81
/// [read(2)]: http://man7.org/linux/man-pages/man2/read.2.html
82
82
/// [write(2)]: http://man7.org/linux/man-pages/man2/write.2.html
83
83
/// [fcntl(2)]: http://man7.org/linux/man-pages/man2/fcntl.2.html
84
- pub static IN_NONBLOCK : c_int = 0o4000 ;
84
+ pub const IN_NONBLOCK : c_int = 0o4000 ;
85
85
86
86
/// Event: File was accessed.
87
87
///
88
88
/// When monitoring a directory, the event may occur both for the
89
89
/// directory itself and the files within.
90
- pub static IN_ACCESS : uint32_t = 0x00000001 ;
90
+ pub const IN_ACCESS : uint32_t = 0x00000001 ;
91
91
92
- pub static IN_MODIFY : uint32_t = 0x00000002 ;
92
+ pub const IN_MODIFY : uint32_t = 0x00000002 ;
93
93
94
94
/// Event: Metadata has changed.
95
95
///
@@ -109,53 +109,53 @@ pub static IN_MODIFY : uint32_t = 0x00000002;
109
109
/// [link(2)]: http://man7.org/linux/man-pages/man2/link.2.html
110
110
/// [unlink(2)]: http://man7.org/linux/man-pages/man2/link.2.html
111
111
/// [chown(2)]: http://man7.org/linux/man-pages/man2/link.2.html
112
- pub static IN_ATTRIB : uint32_t = 0x00000004 ;
112
+ pub const IN_ATTRIB : uint32_t = 0x00000004 ;
113
113
114
114
/// Event: File opened for writing was closed.
115
115
///
116
116
/// When monitoring a directory, the event may occur both for the
117
117
/// directory itself and the files within.
118
- pub static IN_CLOSE_WRITE : uint32_t = 0x00000008 ;
118
+ pub const IN_CLOSE_WRITE : uint32_t = 0x00000008 ;
119
119
120
120
/// Event: File not opened for writing was closed.
121
121
///
122
122
/// When monitoring a directory, the event may occur both for the
123
123
/// directory itself and the files within.
124
- pub static IN_CLOSE_NOWRITE : uint32_t = 0x00000010 ;
124
+ pub const IN_CLOSE_NOWRITE : uint32_t = 0x00000010 ;
125
125
126
126
/// Event: File was opened.
127
127
///
128
128
/// When monitoring a directory, the event may occur both for the
129
129
/// directory itself and the files within.
130
- pub static IN_OPEN : uint32_t = 0x00000020 ;
130
+ pub const IN_OPEN : uint32_t = 0x00000020 ;
131
131
132
132
/// Event: File or directory was moved away.
133
133
///
134
134
/// When monitoring a directory, the event may occur *only* for
135
135
/// the files within, not the directory itself.
136
- pub static IN_MOVED_FROM : uint32_t = 0x00000040 ;
136
+ pub const IN_MOVED_FROM : uint32_t = 0x00000040 ;
137
137
138
138
/// Event: File or directory was moved in.
139
139
///
140
140
/// When monitoring a directory, the event may occur *only* for
141
141
/// the files within, not the directory itself.
142
- pub static IN_MOVED_TO : uint32_t = 0x00000080 ;
142
+ pub const IN_MOVED_TO : uint32_t = 0x00000080 ;
143
143
144
144
/// Event: File or directory was created.
145
145
///
146
146
/// This may also include hard links, symlinks, and UNIX sockets.
147
147
///
148
148
/// When monitoring a directory, the event may occur *only* for
149
149
/// the files within, not the directory itself.
150
- pub static IN_CREATE : uint32_t = 0x00000100 ;
150
+ pub const IN_CREATE : uint32_t = 0x00000100 ;
151
151
152
152
/// Event: File or directory was deleted.
153
153
///
154
154
/// This may also include hard links, symlinks, and UNIX sockets.
155
155
///
156
156
/// When monitoring a directory, the event may occur *only* for
157
157
/// the files within, not the directory itself.
158
- pub static IN_DELETE : uint32_t = 0x00000200 ;
158
+ pub const IN_DELETE : uint32_t = 0x00000200 ;
159
159
160
160
/// Event: Watched file or directory was deleted.
161
161
///
@@ -166,34 +166,34 @@ pub static IN_DELETE : uint32_t = 0x00000200;
166
166
/// An IN_IGNORED event will subsequently be generated.
167
167
///
168
168
/// [mv(1)]: http://man7.org/linux/man-pages/man1/mv.1.html
169
- pub static IN_DELETE_SELF : uint32_t = 0x00000400 ;
169
+ pub const IN_DELETE_SELF : uint32_t = 0x00000400 ;
170
170
171
171
/// Event: Watched file or directory was moved.
172
- pub static IN_MOVE_SELF : uint32_t = 0x00000800 ;
172
+ pub const IN_MOVE_SELF : uint32_t = 0x00000800 ;
173
173
174
174
/// Event: File or directory was moved away or in.
175
175
///
176
176
/// When monitoring a directory, the event may occur *only* for
177
177
/// the files within, not the directory itself.
178
- pub static IN_MOVE : uint32_t = ( IN_MOVED_FROM | IN_MOVED_TO ) ;
178
+ pub const IN_MOVE : uint32_t = ( IN_MOVED_FROM | IN_MOVED_TO ) ;
179
179
180
180
/// Event: File opened was closed.
181
181
///
182
182
/// When monitoring a directory, the event may occur both for the
183
183
/// directory itself and the files within.
184
- pub static IN_CLOSE : uint32_t = ( IN_CLOSE_WRITE | IN_CLOSE_NOWRITE ) ;
184
+ pub const IN_CLOSE : uint32_t = ( IN_CLOSE_WRITE | IN_CLOSE_NOWRITE ) ;
185
185
186
186
/// Event: Any event occured.
187
- pub static IN_ALL_EVENTS : uint32_t = (
187
+ pub const IN_ALL_EVENTS : uint32_t = (
188
188
IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE | IN_CLOSE_NOWRITE
189
189
| IN_OPEN | IN_MOVED_FROM | IN_MOVED_TO | IN_CREATE | IN_DELETE
190
190
| IN_DELETE_SELF | IN_MOVE_SELF ) ;
191
191
192
192
/// Option: Don't watch children (if self is a directory).
193
- pub static IN_ONLYDIR : uint32_t = 0x01000000 ;
193
+ pub const IN_ONLYDIR : uint32_t = 0x01000000 ;
194
194
195
195
/// Option: Don't dereference (if self is a symlink).
196
- pub static IN_DONT_FOLLOW : uint32_t = 0x02000000 ;
196
+ pub const IN_DONT_FOLLOW : uint32_t = 0x02000000 ;
197
197
198
198
/// Option: Don't watch unlinked children.
199
199
///
@@ -208,28 +208,28 @@ pub static IN_DONT_FOLLOW: uint32_t = 0x02000000;
208
208
/// > IN_EXCL_UNLINK changes this behavior, so that events are
209
209
/// > not generated for children after they have been unlinked
210
210
/// > from the watched directory.
211
- pub static IN_EXCL_UNLINK : uint32_t = 0x04000000 ;
211
+ pub const IN_EXCL_UNLINK : uint32_t = 0x04000000 ;
212
212
213
213
/// Option: Add events to an existing watch instead of replacing it.
214
214
///
215
215
/// > If a watch instance already exists for the filesystem
216
216
/// > object corresponding to self, add (|) the events to the
217
217
/// > watch mask instead of replacing it.
218
- pub static IN_MASK_ADD : uint32_t = 0x20000000 ;
218
+ pub const IN_MASK_ADD : uint32_t = 0x20000000 ;
219
219
220
220
/// Option: Listen for one event, then remove the watch.
221
- pub static IN_ONESHOT : uint32_t = 0x80000000 ;
221
+ pub const IN_ONESHOT : uint32_t = 0x80000000 ;
222
222
223
223
/// Info: Subject of this event is a directory.
224
- pub static IN_ISDIR : uint32_t = 0x40000000 ;
224
+ pub const IN_ISDIR : uint32_t = 0x40000000 ;
225
225
226
226
/// Info: Filesystem containing self was unmounted.
227
227
///
228
228
/// An IN_IGNORED event will subsequently be generated.
229
- pub static IN_UNMOUNT : uint32_t = 0x00002000 ;
229
+ pub const IN_UNMOUNT : uint32_t = 0x00002000 ;
230
230
231
231
/// Info: Event queue overflowed.
232
- pub static IN_Q_OVERFLOW : uint32_t = 0x00004000 ;
232
+ pub const IN_Q_OVERFLOW : uint32_t = 0x00004000 ;
233
233
234
234
/// Info: Watch was removed.
235
235
///
@@ -240,7 +240,7 @@ pub static IN_Q_OVERFLOW: uint32_t = 0x00004000;
240
240
/// See the BUGS section of [inotify(7)] for more details.
241
241
///
242
242
/// [inotify(7)]: http://man7.org/linux/man-pages/man7/inotify.7.html
243
- pub static IN_IGNORED : uint32_t = 0x00008000 ;
243
+ pub const IN_IGNORED : uint32_t = 0x00008000 ;
244
244
245
245
246
246
/// Describes an event.
0 commit comments