From 193dbef087cfbfc6e7d148cf88b07e066d67efd7 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 1 Dec 2024 10:41:01 +0200 Subject: [PATCH] return plain IOStream object --- src/client/connection.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/connection.rs b/src/client/connection.rs index 62b0937..72856b8 100644 --- a/src/client/connection.rs +++ b/src/client/connection.rs @@ -9,7 +9,7 @@ use gio::{ Cancellable, IOStream, NetworkAddress, SocketConnection, TlsCertificate, TlsClientConnection, }; use glib::{ - object::{Cast, IsA, ObjectExt}, + object::{Cast, ObjectExt}, Bytes, Priority, }; @@ -76,8 +76,9 @@ impl Connection { /// Get [IOStream](https://docs.gtk.org/gio/class.IOStream.html) /// * compatible with user (certificate) and guest (certificate-less) connection type /// * useful to keep `Connection` reference active in async I/O context - pub fn stream(&self) -> impl IsA { + pub fn stream(&self) -> IOStream { self.tls_client_connection.clone().upcast::() + // * also `base_io_stream` method available @TODO } }