veloren/network/examples
Marcel Märtens 041349be48 Switch API to return Participant rather than Arc<Participant>
- API behavior switched!
 - the `Network` no longer holds a copy of participant, thus if the return of `connect` (before `Arc<Participant>, now `Participant`) got dropped, the `Participant::Drop` is triggered!
 - you can close a Participant async via `Particiant::disconnect()`, no more need to know the network at this point
 - the `Network::Drop` will check and drop not yet disconnected Participants.
 - you can compare Participants via PartialEq, if they are true they point to the same endpoint (it checks remote_pid)
   - Note: multiple Participants are only supported in theory, wont work yet

Additionally:
 - fix some `debug!`
 - veloren-client will now drop the participant gracefully on shutdown
 - rename `error` to `debug` when 2 times Bparticipant shutdown is called, as it is to be expected in a async runtime
2020-07-13 13:03:14 +02:00
..
chat Switch API to return Participant rather than Arc<Participant> 2020-07-13 13:03:14 +02:00
fileshare Switch API to return Participant rather than Arc<Participant> 2020-07-13 13:03:14 +02:00
network-speed Switch API to return Participant rather than Arc<Participant> 2020-07-13 13:03:14 +02:00
tcp-loadtest overall cleanup, more tests, fixing clashes, removing unwraps, hardening against protocol errors, prepare prio mgr to take commands from scheduler 2020-06-09 01:24:16 +02:00