Use &mut [IoSlice] for request sending #427
Labels
help wanted
Extra attention is needed
P3
Priority Middle
stable API
Things that might require API changes
XCBConnection
creates a copy of the passed in slice of request buffers. So far,RustConnection
does not, but instead switches betweenwrite_vectored
and plainwrite
for a buffer:x11rb/src/rust_connection/mod.rs
Lines 682 to 683 in 314242b
I think it should be possible to get rid of that
write
part by using a mutable slice for request sending. That way, partial writes can be done by replacing the respectiveIoSlice
.The text was updated successfully, but these errors were encountered: