Struct compio_driver::op::Sync
source · pub struct Sync { /* private fields */ }Expand description
Sync data to the disk.
Implementations§
source§impl Sync
impl Sync
sourcepub fn new(fd: RawFd, datasync: bool) -> Self
pub fn new(fd: RawFd, datasync: bool) -> Self
Create Sync.
If datasync is true, the file metadata may not be synchronized.
Platform specific
- IOCP: it is synchronized operation, and calls
FlushFileBuffers. - io-uring:
fdatasyncifdatasyncspecified, otherwisefsync. - polling: it is synchronized
fdatasyncorfsync.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Sync
impl Send for Sync
impl Sync for Sync
impl Unpin for Sync
impl UnwindSafe for Sync
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more