mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-15 11:01:21 +00:00
Introduce several concrete future types. (#433)
* multisteam-select: introduce `DialerFuture`. * multistream-select: add more concrete futures. * multistream-select: add ListenerFuture. * multistream-select: add ListenerSelectFuture * Formatting. * Add DialerSelectFuture type alias. * Add UpgradeApplyFuture and NegotiationFuture. * In iterator wrappers also pass-through size_hint. * Minor refactoring. * Address review comments. * Add some comments. * Hide state enums in wrapping structs.
This commit is contained in:
@ -113,6 +113,7 @@
|
||||
//! ```
|
||||
|
||||
extern crate bytes;
|
||||
#[macro_use]
|
||||
extern crate futures;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
@ -128,6 +129,6 @@ mod tests;
|
||||
|
||||
pub mod protocol;
|
||||
|
||||
pub use self::dialer_select::dialer_select_proto;
|
||||
pub use self::dialer_select::{dialer_select_proto, DialerSelectFuture};
|
||||
pub use self::error::ProtocolChoiceError;
|
||||
pub use self::listener_select::listener_select_proto;
|
||||
pub use self::listener_select::{listener_select_proto, ListenerSelectFuture};
|
||||
|
Reference in New Issue
Block a user