Skip to content

Commit b9e0c85

Browse files
committed
impl Connection for TokioIo
1 parent a566eb0 commit b9e0c85

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/rt/tokio.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,16 @@ where
212212
}
213213
}
214214

215+
#[cfg(feature = "client-legacy")]
216+
impl<T> crate::client::legacy::connect::Connection for TokioIo<T>
217+
where
218+
T: crate::client::legacy::connect::Connection,
219+
{
220+
fn connected(&self) -> crate::client::legacy::connect::Connected {
221+
self.inner.connected()
222+
}
223+
}
224+
215225
// ==== impl TokioTimer =====
216226

217227
impl Timer for TokioTimer {

0 commit comments

Comments
 (0)