Skip to main content

write_exact

Function write_exact 

Source
pub fn write_exact<B: IoBuf, I: Io>(
    fd: I::Fd,
    buf: B,
    offset: u64,
) -> WriteExact<B, I> 
Expand description

Writes exactly buf.bytes_init() bytes from buf to fd at offset, retrying on partials. Returns (Ok(()), buf) on success, or (Err(e), buf) on I/O error.