This adds the NetMsg trait, and generics back into carrier-pigeon. The generics help remove some type checking code and allows those checks to be done a compile time. The biggest drawback of this is that it adds a lot of type complexity. This can be mitigated using type aliases. This also unblocks a feature I am working on.
This adds the
NetMsg
trait, and generics back intocarrier-pigeon
. The generics help remove some type checking code and allows those checks to be done a compile time. The biggest drawback of this is that it adds a lot of type complexity. This can be mitigated using type aliases. This also unblocks a feature I am working on.