Skip to content

Commit 825b1e7

Browse files
authored
Fix some fixmes in comments. (#314)
Replace some fixmes for comments with actual comments.
1 parent 8ee1e7f commit 825b1e7

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

cap-primitives/src/fs/open_options.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)