You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into an issue where I'm wrapping a tokio TcpStream's WriteHalf in a Compat01As03Sink and a ReadHalf in a Compat01As03. Later in the function I want to upgrade this TcpStream to a TlsStream. For this, I want to use tokio's SplitStream::reunite. However, because the sink and stream are wrapped in the compat layer, I cannot get an instance back of the original sink and stream. Is there a reason against implementing an into_inner() method for the Compat01As03[Sink] structs?
The text was updated successfully, but these errors were encountered:
I'm running into an issue where I'm wrapping a tokio
TcpStream
'sWriteHalf
in aCompat01As03Sink
and aReadHalf
in aCompat01As03
. Later in the function I want to upgrade thisTcpStream
to aTlsStream
. For this, I want to use tokio'sSplitStream::reunite
. However, because the sink and stream are wrapped in the compat layer, I cannot get an instance back of the original sink and stream. Is there a reason against implementing aninto_inner()
method for theCompat01As03[Sink]
structs?The text was updated successfully, but these errors were encountered: