Simplify communication Message
type
#596
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR chases down some simplifications due to the removal of
abomonation
, looking forward to flexibility enabled by containers.Specifically, the
Message<T>
type has wrapped several ways to present aT
, including owned and borrowed forms, as well as numerous accessors. All of the borrowed forms have been dead code since theabomonation
removal, and the attendant complexity unwarranted. This PR removes it.Going forward, distinctions between owned and borrowed seem best housed in containers, which can themselves resemble
MessageContents<T>
which was the enum that could be owned or borrowed. TheMessage<T>
type remains, but seemingly only to support serialization methods, but this behavior could be move into a trait that containers are expected to implement if they are to be used for exchange edges.