This PR achieves a complete migration to the async trait, users can write code in async env
tentacle/src/traits.rs is the core of the modification
tentacle/src/channel/bound.rs Channels adds two async methods that do not use mut to facilitate the uniformity of the user interface and avoid unnecessary mut marks
tentacle/src/protocol_handle_stream.rs and tentacle/src/service.rs as the place to inherit the implementation of the user’s async trait, part of the logic is inevitably rewritten
Other changes are due to the changes caused by the above changes
ref #305
This PR achieves a complete migration to the async trait, users can write code in async env
tentacle/src/traits.rs
is the core of the modificationtentacle/src/channel/bound.rs
Channels adds two async methods that do not use mut to facilitate the uniformity of the user interface and avoid unnecessary mut markstentacle/src/protocol_handle_stream.rs
andtentacle/src/service.rs
as the place to inherit the implementation of the user’s async trait, part of the logic is inevitably rewrittenOther changes are due to the changes caused by the above changes
This change is