-
I want to use a struct to manage connected TcpStream. tokio::spawn(
async move {
let mut ctx = Context::new(socket);
let mut service = NetService::new(&mut ctx);
service.handle_connected();
service.run().await;
service.handle_disconnected();
}
); It failed to pass the compile, How do I modify the code to pass the compiler? |
Beta Was this translation helpful? Give feedback.
Answered by
Darksonn
May 13, 2022
Replies: 1 comment 7 replies
-
Without seeing the compiler error, I can't help you. |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
fakecore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Without seeing the compiler error, I can't help you.