Skip to content

no method named split found for tokio_util::codec::Framed<tokio::net::TcpStream, ...> after upgrade to 0.3 #3081

Answered by Darksonn
martinetd asked this question in Q&A
Discussion options

You must be logged in to vote

Rust couldn't decide which split you wanted, so I changed the line to the following to disambiguate it:

let (mut writer, reader) = futures::StreamExt::split(stream);

this gives me:

error[E0277]: the trait bound `irc::irc_proto::IrcCodec: tokio_util::codec::Decoder` is not satisfied
    --> src/main.rs:865:58
     |
865  |     let (mut writer, reader) = futures::StreamExt::split(stream);
     |                                                          ^^^^^^ the trait `tokio_util::codec::Decoder` is not implemented for `irc::irc_proto::IrcCodec`
     | 
    ::: /home/alice/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.7/src/stream/stream/mod.rs:1277:14
     |
1277 |     f…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@martinetd
Comment options

Answer selected by martinetd
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants