nervosnetwork / tentacle

A multiplexed p2p network framework that supports custom protocols

Home Page:https://docs.rs/tentacle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need more clear error define

leeyr338 opened this issue · comments

The handle_error in trait ServiceHandle, using io::Error for its error type.
It better to have a more clear error defined to distinguish what has happened in p2p framework.
For example, we need a special kind of error type to show Connected to the connected node.