{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreidomeum6x77dst7g3hpssui7y2ylykktr6jjnenrpzdj3n4datsnu",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mhfnwrzrb562"
},
"path": "/t/idea-add-an-option-to-set-the-mode-to-fs-copy/24080#post_14",
"publishedAt": "2026-03-19T06:55:47.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "ais523:\n\n> `splice` only works if at least one of the specified file descriptors refers to a pipe\n\nYeah, you are right, I overlooked that, and it seems to still apply (as the other functions had their constraints relaxed over time).\n\nIt would be possible to run two `splice`s in separate threads in parallel, or let kernel threads run them via io_uring, but that would be quite a lot of work for a relatively rare operation.",
"title": "Idea: Add an option to set the mode to fs::copy"
}