-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Split out a `Settings` struct from `Config` The `Settings` struct is an abstract representation of `frame::Settings`. Basically: - When talking about our own connection, we should use `Config`. - e.g. in `ConnectionInner`'s `config` field - When talking about a peer's settings, we should use `Settings. - e.g. in `SharedState`'s `peer_config` field This separation allows us to define some conversions: - `Config` -> `frame::Settings` - used in ConnectionInner::new - `&frame::Settings` -> `Settings` - used in ConnectionInner::poll_control * Remove Deref and DerefMut impls for Config `Config` is not a smart pointer
- Loading branch information
Showing
5 changed files
with
132 additions
and
85 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