Pierre Krieger
b6378ac526
PollParameters is now a trait ( #1177 )
...
* PollParameters is now a trait
* Fix unused variable
2019-06-18 10:23:26 +02:00
Pierre Krieger
a953b613cf
Add NetworkBehaviour::inject_new_external_addr ( #1063 )
2019-04-16 17:00:20 +02:00
Pierre Krieger
9b6336672b
Add NetworkBehaviour methods for listened addresses ( #1061 )
2019-04-16 15:36:08 +02:00
Pierre Krieger
34db72a080
Split address reach error and node reach error ( #1013 )
...
* Split address reach error and node reach error
* Small comments about order of operatoins
* Minor doc change
2019-03-20 20:28:55 +01:00
Roman Borschel
eeed66707b
Address edition-2018 idioms. ( #929 )
2019-02-11 14:58:15 +01:00
Pierre Krieger
6b3b3ed2b5
Fix generics in out_event type in derive ( #922 )
2019-02-06 15:45:19 +01:00
Pierre Krieger
c9b7e237b6
Add NetworkBehaviour::inject_replaced ( #914 )
...
* Add NetworkBehaviour::inject_replaced
* Address style
* Forgot to call set_disconnected
* Also add incoming addresses to kbuckets
2019-02-04 15:21:50 +01:00
Pierre Krieger
a77da73010
Add inject_dial_failure and make addresses_of_peer mut ( #901 )
...
* Add inject_dial_failure and make addresses_of_peer mut
* Fix tests
2019-01-30 14:55:39 +01:00
Pierre Krieger
df923526ca
Embed the topology in the NetworkBehaviour ( #889 )
...
* Embed the topology in the NetworkBehaviour
* Put topologies inside of Floodsub and Kad
* Fix core tests
* Fix chat example
* More work
* Some cleanup
* Restore external addresses system
2019-01-26 23:57:53 +01:00
Dan Robertson
615dd3332f
derive(NetworkBehaviour) handles trailing commas ( #874 )
...
Properly handle trailing commas in derive(NetworkBehaviour)
2019-01-21 11:56:01 +01:00
Dan Robertson
69abfbb18e
Fix custom derive when using a where clause ( #853 )
...
When injecting the users where clause we need to ensure a comma is
inserted between the users where clause and ours.
2019-01-15 17:00:56 +01:00
Pierre Krieger
bf52e9bd19
Add IntoNodeHandler and IntoProtocolsHandler traits ( #848 )
...
* Add IntoNodeHandler
* Add IntoProtocolsHandler
2019-01-14 14:22:25 +01:00
Pierre Krieger
d10cafa804
Make deriving the NetworkBehaviour more ergonomic ( #782 )
2018-12-20 15:21:13 +01:00
Pierre Krieger
c5d08ab48c
Enhance the swarm a bit ( #711 )
...
* Replace the &mut TTopology with a &mut PollParameters
* Add supported_protocols
* Add external_addresses
* Report out addresses in Kademlia
* Fix the custom derive
* Some comments
* Fix compilation on stable
2018-12-01 13:34:57 +01:00
Pierre Krieger
179e65ff5c
Fix core-derive ( #707 )
2018-11-29 18:01:16 +01:00
Pierre Krieger
3aa1fcbdc6
Add a KademliaHandler ( #580 )
...
* Rework Kademlia for the new design
* Minor work on protocol.rs
* More work
* Remove QueryTarget::FindValue
* Finish work on query
* Query timeout test
* Work on topology
* More work
* Update protocols/kad/src/topology.rs
Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>
* Fix trailing whitespaces
* Use if let
2018-11-29 12:11:35 +01:00
Pierre Krieger
e12795d1e6
Fix the custom derive ( #689 )
...
* Fix the custom derive
* Concern
2018-11-27 16:10:34 +01:00
Pierre Krieger
45114aef46
Move the Swarm in its own module ( #681 )
2018-11-27 11:22:55 +01:00
Pierre Krieger
37994b34e7
Behavior -> Behaviour ( #650 )
2018-11-16 12:59:57 +01:00
Pierre Krieger
1c9091655b
Move protocols_handler to the root ( #643 )
2018-11-15 18:39:20 +01:00
Toralf Wittner
2e549884ef
Split ConnectionUpgrade
. ( #642 )
...
Introduce `InboundUpgrade` and `OutboundUpgrade`.
2018-11-15 17:41:11 +01:00
Pierre Krieger
623728b35d
Add a custom derive for NetworkBehaviour ( #619 )
...
* Add ProtocolsHandlerSelect
* Add a custom derive for NetworkBehaviour
* Remove 2018 edition
* More work
* Update the tests and work
* Allow ignored fields
* More fixes
* Give access to everything in the poll method
2018-11-12 17:12:47 +01:00