Skip to main content

write_all

Function write_all 

Source
fn write_all(
    file: &File,
    buf: &[u8],
    offset: u64,
    io_mode: IoMode,
) -> Result<()>
Available on Unix and crate feature pool only.
Expand description

Writes all of buf at offset, retrying on EINTR and short writes. In IoMode::Direct, a short write restarts the whole buffer at offset, at most DIRECT_WRITE_ATTEMPTS times, and the final attempt’s error is returned.