Roman Borschel
eeed66707b
Address edition-2018 idioms. ( #929 )
2019-02-11 14:58:15 +01:00
Pierre Krieger
663ec7e8da
connection_keep_alive() now returns KeepAlive ( #899 )
...
* connection_keep_alive() now returns Option<Instant>
* Use KeepAlive instead of Option<Instant>
2019-01-30 16:37:34 +01:00
Pierre Krieger
35ec7f053c
Proper shutdown in ProtocolsHandlerSelect ( #870 )
...
* Proper shutdown in ProtocolsHandlerSelect
* Fix infinite loop
2019-01-29 19:52:22 +01:00
Pierre Krieger
30c082dfe5
Properly shut down protocols handler on useless timeout ( #892 )
2019-01-25 15:56:32 +01:00
Pierre Krieger
a2ab7ff4a9
Simplify the floodsub handler ( #868 )
2019-01-22 14:45:03 +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
5742a0000e
Add documentation to the core ( #820 )
2019-01-07 11:39:08 +01:00
Pierre Krieger
7da1a860be
Automatically close useless connections ( #816 )
...
* Automatically close useless connections
* Add a timeout before dropping the connection
* Rework the timeout
* Use OR to combine the outcome
2019-01-04 12:02:39 +01:00
Pierre Krieger
2c2fc8bfd3
Don't allow handlers::poll() to return None ( #811 )
2019-01-02 14:22:23 +01:00
Pierre Krieger
7798e23e78
Add an error associated type to ProtocolsHandler ( #795 )
2018-12-28 15:11:35 +01:00
Pierre Krieger
83320e0347
More precise error passed to inject_dial_upgrade_error ( #771 )
...
* More precise error passed to inject_dial_upgrade_error
* Fix concerns
* Fix panic proof
2018-12-18 11:23:13 +01:00
Pierre Krieger
69684a97b2
More precise errors in the nodes module ( #765 )
...
* More precise errors in the nodes module
* Typo
* Prove the panics
2018-12-11 15:36:41 +01:00
Toralf Wittner
dd5fb17a2b
Rename OrUpgrade
to SelectUpgrade
. ( #751 )
...
Also remove `InboundUpgrade.or_inbound` and `OutboundUpgrade.or_outbound`.
2018-12-07 11:39:18 +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
dc55b00730
Split the protocols_handler.rs
module into multiple submodules ( #680 )
...
* Rename protocols_handler.rs to protocols_handler/mod.rs
* Move DummyProtocolsHandler out of the module
* Extract ProtocolsHandlerSelect
* Extract NodeHandlerWrapper
2018-11-26 14:01:08 +01:00