-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
protocols/noise: Update to futures-preview #1248
Changes from 31 commits
80e21bf
a50a853
61b0465
52cb4e1
4826b8e
7101fe6
b94dc21
83684fb
9f44676
1e8f34a
b184be9
6b0fbcb
9c89268
edbeb2e
8dccad9
40854f1
6efecb2
bf949e6
ec089c6
b5a0bfa
5a89272
b7b0891
fa7d919
d6e179a
af7f093
8a41b80
1f07367
ef103c9
7df47f0
c490e29
555c2df
ed88f01
ad5fbca
4ae908d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,7 @@ pub trait InboundUpgrade<C>: UpgradeInfo { | |
type Error; | ||
/// Future that performs the handshake with the remote. | ||
// TODO: remove Unpin | ||
type Future: Future<Output = Result<Self::Output, Self::Error>> + Unpin; | ||
type Future: Future<Output = Result<Self::Output, Self::Error>> + Unpin + Send; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This neither. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tomaka I am sorry, I must be misunderstanding something here. You would like As far as I understood something can only be
What am I missing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As you mentioned, the
The exception is |
||
|
||
/// After we have determined that the remote supports one of the protocols we support, this | ||
/// method is called to start the handshake. | ||
|
@@ -186,7 +186,7 @@ pub trait OutboundUpgrade<C>: UpgradeInfo { | |
type Error; | ||
/// Future that performs the handshake with the remote. | ||
// TODO: remove Unpin | ||
type Future: Future<Output = Result<Self::Output, Self::Error>> + Unpin; | ||
type Future: Future<Output = Result<Self::Output, Self::Error>> + Unpin + Send; | ||
|
||
/// After we have determined that the remote supports one of the protocols we support, this | ||
/// method is called to start the handshake. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not what I was thinking of.