File tree 1 file changed +11
-4
lines changed 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -141,28 +141,35 @@ impl OpenOptions {
141
141
self
142
142
}
143
143
144
- /// Sets the option to enable fixme
144
+ /// Requests write operations complete as defined by synchronized I/O file
145
+ /// integrity completion.
145
146
#[ inline]
146
147
pub ( crate ) fn sync ( & mut self , enable : bool ) -> & mut Self {
147
148
self . sync = enable;
148
149
self
149
150
}
150
151
151
- /// Sets the option to enable fixme
152
+ /// Requests write operations complete as defined by synchronized I/O data
153
+ /// integrity completion.
152
154
#[ inline]
153
155
pub ( crate ) fn dsync ( & mut self , enable : bool ) -> & mut Self {
154
156
self . dsync = enable;
155
157
self
156
158
}
157
159
158
- /// Sets the option to enable fixme
160
+ /// Requests read operations complete as defined by the level of integrity
161
+ /// specified by `sync` and `dsync`.
159
162
#[ inline]
160
163
pub ( crate ) fn rsync ( & mut self , enable : bool ) -> & mut Self {
161
164
self . rsync = enable;
162
165
self
163
166
}
164
167
165
- /// Sets the option to enable fixme
168
+ /// Requests that I/O operations fail with `std::io::ErrorKind::WouldBlock`
169
+ /// if they would otherwise block.
170
+ ///
171
+ /// This option is commonly not implemented for regular files, so blocking
172
+ /// may still occur.
166
173
#[ inline]
167
174
pub ( crate ) fn nonblock ( & mut self , enable : bool ) -> & mut Self {
168
175
self . nonblock = enable;
You can’t perform that action at this time.
0 commit comments