-
Notifications
You must be signed in to change notification settings - Fork 82
Add a way to combine multiple Parse and Serialize #63
Comments
Do you mean something like Wangle (and presumably finagle provide) where you can create re-usable parse/serialize layers? I imagine something like this example from wangle: https://github.com/facebook/wangle/blob/master/wangle/example/echo/EchoServer.cpp#L39 Here the bottom of the "pipeline" starts with the socket layer that deals with pulling/pushing bytes on the wire. Then we move up into more specific codecs as we move along (e.g. Line->String->Echo). The interesting thing from their pipeline abstraction is the ability to define handlers that only deal with ingress, egress, or both. I know more about wangle than finagle but I know that is where they also got their inspiration (and of course netty). The mapping to rust in tokio has been difficult to follow and I'm still really struggling to put all the pieces together. I'm assuming this kind of functionality is where tokio-proto fits in given some of the abstractions in this crate. |
Yeah, that's it. |
Thanks for the report. This can already be done (though additional boiler plate) The For example, you could have a This requires a bit more polish and a lot more documentation, so I will flag this as a doc issue. |
|
Can you link the doc from tokio.rs to this issue, where it explains the |
|
In favor of |
Like
serde
+ framing protocol.The text was updated successfully, but these errors were encountered: