No send method on Framed. #4505
Answered
by
10maurycy10
10maurycy10
asked this question in
Q&A
-
I have implemented a custom codec implementing After construting a Framed struct like this: let mut packets: Framed<TcpStream, _> = Framed::new(stream, proto::Proto::new()); I cant call
is there another way to send data to a framed TcpStream, or is my codec definition need fixing? |
Beta Was this translation helpful? Give feedback.
Answered by
10maurycy10
Feb 16, 2022
Replies: 1 comment
-
I found the solution ```use futures::SinkExt; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
10maurycy10
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the solution ```use futures::SinkExt;
(from the
futures`` crate)