Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support vectored I/O #26

Merged
merged 13 commits into from
Jan 22, 2023
Merged

Support vectored I/O #26

merged 13 commits into from
Jan 22, 2023

Conversation

Thomasdezeeuw
Copy link
Owner

No description provided.

Same reasoning as for the requirement on BufMut.
Will be used in vectored writing.
Allowing something like the following.

op_futures! {
    // ...
    struct WriteVectored<'fd, B: BufSlice<N>, N> {
        // ...
    }
    // ...
}
Allowing something like the following.

op_futures! {
    // ...
    struct WriteVectored<'fd, B: BufSlice<N>; const N: usize> {
        // ...
    }
    // ...
}

Note that this uses `;` instead of `,` because Rust can't resolve the
ambiguity between const and $generic.
Writes using vectored I/O.
Mixure of BufMut and BufSlice, in other words read buffer for vectored
I/O.
For now this will not support the ReadBuf(Pool), perhaps support can be
added later.
Reading using vectored I/O.
@Thomasdezeeuw Thomasdezeeuw merged commit 052154e into main Jan 22, 2023
@Thomasdezeeuw Thomasdezeeuw deleted the vectored-io branch January 22, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant