File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -141,28 +141,35 @@ impl OpenOptions {
141141 self
142142 }
143143
144- /// Sets the option to enable fixme
144+ /// Requests write operations complete as defined by synchronized I/O file
145+ /// integrity completion.
145146 #[ inline]
146147 pub ( crate ) fn sync ( & mut self , enable : bool ) -> & mut Self {
147148 self . sync = enable;
148149 self
149150 }
150151
151- /// Sets the option to enable fixme
152+ /// Requests write operations complete as defined by synchronized I/O data
153+ /// integrity completion.
152154 #[ inline]
153155 pub ( crate ) fn dsync ( & mut self , enable : bool ) -> & mut Self {
154156 self . dsync = enable;
155157 self
156158 }
157159
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`.
159162 #[ inline]
160163 pub ( crate ) fn rsync ( & mut self , enable : bool ) -> & mut Self {
161164 self . rsync = enable;
162165 self
163166 }
164167
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.
166173 #[ inline]
167174 pub ( crate ) fn nonblock ( & mut self , enable : bool ) -> & mut Self {
168175 self . nonblock = enable;
You can’t perform that action at this time.
0 commit comments