-
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!: Merge 'connect' and 'close' errors with
ConnectionError
This introduces new variants to the `ConnectionError` enum to cover failures that may be encountered before establishing a connection (`quinn::ConnectError`) as well as closures (`Close`). This is useful for a couple of reasons: - Many of our APIs will transparently try to create connections before using them. Even when reducing the possible variants from these APIs, we would still need to account for these three possibilities (pre-connect error, connection error, and connection close). - It removes `quinn::ConnectError` from our public API, and better represents errors that should be impossible as bugs. - It replaces the crate-private `ConnectFailure` and simplifies some of the error conversion logic. BREAKING CHANGE: The `Error::Connect` and `Error::ConnectionClosed` variants have been removed. Several additional variants have been added to `ConnectionError`.
- Loading branch information
Showing
5 changed files
with
124 additions
and
125 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