tokio-rs / tokio-uring

An io_uring backed runtime for Rust
MIT License
1.14k stars 122 forks source link

add writev_all to io modules #220

Closed FrankReh closed 1 year ago

FrankReh commented 1 year ago

And add File::writev_at_all as the first user facing example.

The writev_all function will call the io_uring writev operation as many times as necessary to get all the bytes written or to hit an error, which ever comes first.

FrankReh commented 1 year ago

@ollie-etl , @mzabaluev and others, welcome to review also.

FrankReh commented 1 year ago

@mzabaluev The same function will be called from TcpStream and UnixStream so a common place like the io directory seemed reasonable to me.