-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add location-set as a generic type to Transport #14
Merged
+397
−200
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
2bd32d5
Add location-set as a generic type to Transport
ihaveint 24ad199
Change the book examples. The text itself still needs to be updated
ihaveint 3fee760
Update the book
ihaveint 140e431
Refactor HttpConfig
ihaveint f992cf0
Fix import for PhantomData
ihaveint c4feb9c
Simplify User-API for building TransportConfig
ihaveint 642b971
WIP: program doesn't terminate
ihaveint e486a7d
WIP: the library tests work
ihaveint 5df2e94
Simplify things a bit
ihaveint d7e593c
Remove redundant target-location argument
ihaveint d835717
Fix some warnings and remove an extra layer of Arc
ihaveint 65096dd
Use Equal trait instead of assuming equality of the location sets
ihaveint 9db4537
Update examples
ihaveint 1f42d17
Remove the TransportChannel from HttpTransport
ihaveint 1739b1b
Move TransportChannel to LocalTransport and rename it to LocalTranspo…
ihaveint 07f5021
Update examples and the book
ihaveint 5bf932a
Merge pull request #15 from lsd-ucsc/target-specific-info
ihaveint ab005b2
Use std::marker::PhantomData instead of core::marker::PhantomData
ihaveint 9c99e5c
Change some imports
ihaveint 0b91d60
Change the API for building a TransportConfig; now we use builder pat…
ihaveint 62f4a59
Change the examples and the book to reflect the new API
ihaveint b5dfba0
Remove a bunch of unnecessary Arcs
ihaveint 2b379cd
Update the guide for Transport
ihaveint 2597d37
Remove some empty spaces in the book
ihaveint f0b8461
Remove redundant comments
ihaveint 83a5212
Change the API so that we have a builder pattern for LocalTransportCh…
ihaveint File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
# extern crate chorus_lib; | ||
# use chorus_lib::core::{ChoreoOp, Choreography, ChoreographyLocation, Projector, Located, Superposition, Runner}; | ||
# use chorus_lib::transport::local::LocalTransport; | ||
# use chorus_lib::{LocationSet, projector}; | ||
# use chorus_lib::transport::local::{LocalTransport, LocalTransportChannel}; | ||
# use chorus_lib::{LocationSet}; | ||
# #[derive(ChoreographyLocation)] | ||
# struct Alice; | ||
# #[derive(ChoreographyLocation)] | ||
# struct Bob; | ||
# #[derive(ChoreographyLocation)] | ||
# struct Carol; | ||
# let transport = LocalTransport::from(&[Alice::name(), Bob::name(), Carol::name()]); | ||
# let transport_channel = LocalTransportChannel::new().with(Alice).with(Bob).with(Carol); | ||
# let alice_transport = LocalTransport::new(Alice, transport_channel.clone()); | ||
# let bob_transport = LocalTransport::new(Bob, transport_channel.clone()); | ||
# let carol_transport = LocalTransport::new(Carol, transport_channel.clone()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence seems redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, we have this sentence in the current version of the book: "To use the
local
transport, import theLocalTransport
struct from thechorus_lib
crate."In this commit, it's just in a different paragraph. But if you do think that it shouldn't have been there in the first place, sure! I'll delete it (But let me know if you want it to be gone completely or you want me to put it before the snippet)