Skip to content

Commit

Permalink
impl Connection for TokioIo
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang committed Apr 12, 2024
1 parent a566eb0 commit b9e0c85
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rt/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ where
}
}

#[cfg(feature = "client-legacy")]
impl<T> crate::client::legacy::connect::Connection for TokioIo<T>
where
T: crate::client::legacy::connect::Connection,
{
fn connected(&self) -> crate::client::legacy::connect::Connected {
self.inner.connected()
}
}

// ==== impl TokioTimer =====

impl Timer for TokioTimer {
Expand Down

0 comments on commit b9e0c85

Please sign in to comment.