-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: Separate connection close from errors
This rationalises how connection closes and errors are represented by the `Error` type. The `QuinnConnectionClosed` variant is gone, in favour of a `ConnectionClosed` variant that carries information about who closed the connection and why. The `Connection` variant has been renamed to `ConnectionError` and contains a subset of `quinn::ConnectionError`'s variants, excluding `*Closed` errors. It's expected that this will make it easier and more reliable to respond to 'normal' connection closures, vs. connection errors. BREAKING CHANGE: The `Error::QuinnConnectionClosed` variant has been renamed `Error::ConnectionClosed` and now contains closure information. The `Error::Connection` variant has been renamed `Error::ConnectionError`, and now contains a `ConnectionError`. `quinn::ConnectionError` is no longer re-exported.
- Loading branch information
Showing
6 changed files
with
151 additions
and
22 deletions.
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
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