gtk-rs / gtk-rs-core

Rust bindings for GNOME libraries
https://gtk-rs.org/gtk-rs-core
MIT License
280 stars 112 forks source link

[FEATURE REQUEST] Make PollableInputStream Implementable #1522

Open Mubelotix opened 2 weeks ago

Mubelotix commented 2 weeks ago

I would like to create a PollableInputStream from a Rust asynchronous stream of byte chunks.

I have not found anything useful in the doc. Is this possible ?

Since PollableInputStream is actually an interface, isn't there any way to implement it on a custom struct?

Mubelotix commented 2 weeks ago

Seems like PollableInputStream isn't implementable. Why?

sdroege commented 2 weeks ago

Because nobody added it yet. I don't think there's any fundamental problem with it :)

Mubelotix commented 2 weeks ago

Because nobody added it yet. I don't think there's any fundamental problem with it :)

Thank you for the clarification, I'm turning this issue into a feature request then. Sadly I think I lack the technical knowledge to implement this myself