-
Notifications
You must be signed in to change notification settings - Fork 34
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
Chunked read/write API for RecvStream/SendStream #41
Comments
I agree However, I am still investigating whether to make this more convenient and user-friendly (interoperability between ordered and no-ordered reads). In the meanwhile, starting from version This is behind the feature In order to avoid API/ABI dependency breaks, use wtransport::quinn::RecvStream;
// ... |
This is great! I'll consider this done for now. Just for better interop in the generics context - have you considered implementing |
I am not really inclined to implement I want to let the access to QUIC layer only via feature (disabled by default), as I would like to not have the API depending from the transport. And I would not put those (standard) traits under a feature flag. Also considering it is not really a limitation not having |
Why not? That's what I was implying - obviously these should only be available only with |
I'd actually suggest splitting the I suspect this interface hiding idea is intended with eventual wasm/web target in mind anyway, but I have worked on |
Because they are standard traits. Standard traits are meant to provide consistent and expected behavior to users. Introducing a feature flag might add complexity and confusion to the codebase and documentation. Users often rely on these traits as fundamental building blocks for their applications. A feature flag for standard traits could potentially fragment the user API and lead to uncertainty about when and how to use them. That being said, I'm open to discussing the issues you've encountered. I guess the lacking of those trait can be easily addressed with a simple method call (i.e., |
That might be a good idea, which is already a part of the design of Indeed, I am already considering the idea of having I need to think about it and understand what the options are and the best way to implement it. Definitely something to include in the design plan for the future of this library. Thank you! |
Well, I have already solved this issue with my But if I was building from scratch, rather than building a whole bunch of pretty useless newtypes, Id rather make use of quinn streams directly - this way other webtransport over quinn implementations (like
Ah, you see, this is different! It just copied the I suggest you take a look at what I am doing at https://github.com/MOZGIII/xwebtransport if you haven't yet. It is about time for me to build a central front-end crate |
Under the hood, quinn has
read_chunk
andwrite_chunk
fns (et al) - it would be great if this crate could expose a similar API.The text was updated successfully, but these errors were encountered: