Skip to content

Commit

Permalink
Fix some fixmes in comments.
Browse files Browse the repository at this point in the history
Replace some fixmes for comments with actual comments.
  • Loading branch information
sunfishcode committed Apr 12, 2023
1 parent 8ee1e7f commit 3b3747d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions cap-primitives/src/fs/open_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,28 +141,35 @@ impl OpenOptions {
self
}

/// Sets the option to enable fixme
/// Requests write operations complete as defined by synchronized I/O file
/// integrity completion.
#[inline]
pub(crate) fn sync(&mut self, enable: bool) -> &mut Self {
self.sync = enable;
self
}

/// Sets the option to enable fixme
/// Requests write operations complete as defined by synchronized I/O data
/// integrity completion.
#[inline]
pub(crate) fn dsync(&mut self, enable: bool) -> &mut Self {
self.dsync = enable;
self
}

/// Sets the option to enable fixme
/// Requests read operations complete as defined by the level of integrity
/// specified by `sync` and `dsync`.
#[inline]
pub(crate) fn rsync(&mut self, enable: bool) -> &mut Self {
self.rsync = enable;
self
}

/// Sets the option to enable fixme
/// Requests that I/O operations fail with `std::io::ErrorKind::WouldBlock`
/// if they would otherwise block.
///
/// This option is commonly not implemented for regular files, so blocking
/// may still occur.
#[inline]
pub(crate) fn nonblock(&mut self, enable: bool) -> &mut Self {
self.nonblock = enable;
Expand Down

0 comments on commit 3b3747d

Please sign in to comment.