These are chat archives for rust-lang/rust

9th
Apr 2017
Marcin Jurczuk
@MrSpock
Apr 09 2017 13:19
Hi.
Anyone fluent in rust channels ?:)
I'm trying to implement something with them but it seems like there can pass only single message. After trying to send another one I'm getting error "channel closed"
Here is part of my code:
At later stage simple println!() inside thread will be replaced by mqtt message task
Marcin Jurczuk
@MrSpock
Apr 09 2017 13:25
Or maybe there is another way to handle packets inside tokio-core future based service ?
  1. Parse/decode packet - works.
Sergey Noskov
@Albibek
Apr 09 2017 19:31
@MrSpock your code is out of context - no uses, no identifiers, one can't even determine what channel impl are you using - std, tokio or another