Skip to content

Add QUIC traits #3

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

Merged
merged 2 commits into from
Aug 3, 2020
Merged

Add QUIC traits #3

merged 2 commits into from
Aug 3, 2020

Conversation

seanmonstar
Copy link
Member

This adds a quic module with a few traits, which can be used to
abstract over the QUIC transport.

This adds a `quic` module with a few traits, which can be used to
abstract over the QUIC transport.
/// When the receive side will no longer receive more data (such as because
/// the peer closed their sending side), this should return `None`.
fn poll_data(
&mut self,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make this Pin<> right now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tricky part is, if this requires Pin, then how about the methods that wouldn't normally, such as stop_sending? That method itself likely doesn't need to be pinned, but once you've pinned to call poll_data, you can't easily unpin (generically) to fulfill &mut self... I don't know what the right answer is.

stammw pushed a commit that referenced this pull request Aug 2, 2020
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.

3 participants