Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Add an AsyncRead+AsyncWrite adapter for IOStream #270

Merged
merged 2 commits into from
Jan 5, 2020
Merged

Add an AsyncRead+AsyncWrite adapter for IOStream #270

merged 2 commits into from
Jan 5, 2020

Conversation

sdroege
Copy link
Member

@sdroege sdroege commented Jan 4, 2020

In many places a combination of both is required so let's make this a
bit simpler for users.

That's basically most of the boilerplate in the gio_async_tls.rs example. I'll update that once this one here is merged.

In many places a combination of both is required so let's make this a
bit simpler for users.
@@ -155,11 +155,11 @@ pub struct OutputStreamAsyncWrite<T: IsA<PollableOutputStream>>(
);

impl<T: IsA<PollableOutputStream>> OutputStreamAsyncWrite<T> {
pub fn into_input_stream(self) -> T {
pub fn into_output_stream(self) -> T {
Copy link
Member

Choose a reason for hiding this comment

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

Good catch

@EPashkin
Copy link
Member

EPashkin commented Jan 5, 2020

@sdroege Thanks, 👍

@GuillaumeGomez
Copy link
Member

Thanks!

@sdroege sdroege merged commit 0655841 into gtk-rs:master Jan 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants