@@ -122,35 +122,42 @@ pub mod derive_prelude {
122122 pub use libp2p_core:: Multiaddr ;
123123 pub use libp2p_identity:: PeerId ;
124124
125- pub type TBehaviourOutEvent < TBehaviour > = <TBehaviour as NetworkBehaviour >:: ToSwarm ;
126- pub type THandlerInProtocol < TBehaviour > =
127- <THandler < TBehaviour > as ConnectionHandler >:: InboundProtocol ;
128- pub type THandlerInOpenInfo < TBehaviour > =
129- <THandler < TBehaviour > as ConnectionHandler >:: InboundOpenInfo ;
130- pub type THandlerOutProtocol < TBehaviour > =
131- <THandler < TBehaviour > as ConnectionHandler >:: OutboundProtocol ;
132- pub type THandlerOutOpenInfo < TBehaviour > =
133- <THandler < TBehaviour > as ConnectionHandler >:: OutboundOpenInfo ;
134- pub type THandlerInUpgradeInfo < TBehaviour > =
135- <THandlerInProtocol < TBehaviour > as UpgradeInfoSend >:: Info ;
136- pub type THandlerOutUpgradeInfo < TBehaviour > =
137- <THandlerOutProtocol < TBehaviour > as UpgradeInfoSend >:: Info ;
138- pub type THandlerInUpgradeInfoIter < TBehaviour > =
139- <THandlerInProtocol < TBehaviour > as UpgradeInfoSend >:: InfoIter ;
140- pub type THandlerOutUpgradeInfoIter < TBehaviour > =
141- <THandlerOutProtocol < TBehaviour > as UpgradeInfoSend >:: InfoIter ;
142- pub type THandlerInUpgradeOutput < TBehaviour > =
143- <THandlerInProtocol < TBehaviour > as InboundUpgradeSend >:: Output ;
144- pub type THandlerOutUpgradeOutput < TBehaviour > =
145- <THandlerOutProtocol < TBehaviour > as OutboundUpgradeSend >:: Output ;
146- pub type THandlerInUpgradeError < TBehaviour > =
147- <THandlerInProtocol < TBehaviour > as InboundUpgradeSend >:: Error ;
148- pub type THandlerOutUpgradeError < TBehaviour > =
149- <THandlerOutProtocol < TBehaviour > as OutboundUpgradeSend >:: Error ;
150- pub type THandlerInUpgradeFuture < TBehaviour > =
151- <THandlerInProtocol < TBehaviour > as InboundUpgradeSend >:: Future ;
152- pub type THandlerOutUpgradeFuture < TBehaviour > =
153- <THandlerOutProtocol < TBehaviour > as OutboundUpgradeSend >:: Future ;
125+ #[ cfg( feature = "experimental-macros" ) ]
126+ #[ doc( hidden) ]
127+ pub mod experimental {
128+ use super :: * ;
129+ pub type TBehaviourOutEvent < TBehaviour > = <TBehaviour as NetworkBehaviour >:: ToSwarm ;
130+ pub type THandlerInProtocol < TBehaviour > =
131+ <THandler < TBehaviour > as ConnectionHandler >:: InboundProtocol ;
132+ pub type THandlerInOpenInfo < TBehaviour > =
133+ <THandler < TBehaviour > as ConnectionHandler >:: InboundOpenInfo ;
134+ pub type THandlerOutProtocol < TBehaviour > =
135+ <THandler < TBehaviour > as ConnectionHandler >:: OutboundProtocol ;
136+ pub type THandlerOutOpenInfo < TBehaviour > =
137+ <THandler < TBehaviour > as ConnectionHandler >:: OutboundOpenInfo ;
138+ pub type THandlerInUpgradeInfo < TBehaviour > =
139+ <THandlerInProtocol < TBehaviour > as UpgradeInfoSend >:: Info ;
140+ pub type THandlerOutUpgradeInfo < TBehaviour > =
141+ <THandlerOutProtocol < TBehaviour > as UpgradeInfoSend >:: Info ;
142+ pub type THandlerInUpgradeInfoIter < TBehaviour > =
143+ <THandlerInProtocol < TBehaviour > as UpgradeInfoSend >:: InfoIter ;
144+ pub type THandlerOutUpgradeInfoIter < TBehaviour > =
145+ <THandlerOutProtocol < TBehaviour > as UpgradeInfoSend >:: InfoIter ;
146+ pub type THandlerInUpgradeOutput < TBehaviour > =
147+ <THandlerInProtocol < TBehaviour > as InboundUpgradeSend >:: Output ;
148+ pub type THandlerOutUpgradeOutput < TBehaviour > =
149+ <THandlerOutProtocol < TBehaviour > as OutboundUpgradeSend >:: Output ;
150+ pub type THandlerInUpgradeError < TBehaviour > =
151+ <THandlerInProtocol < TBehaviour > as InboundUpgradeSend >:: Error ;
152+ pub type THandlerOutUpgradeError < TBehaviour > =
153+ <THandlerOutProtocol < TBehaviour > as OutboundUpgradeSend >:: Error ;
154+ pub type THandlerInUpgradeFuture < TBehaviour > =
155+ <THandlerInProtocol < TBehaviour > as InboundUpgradeSend >:: Future ;
156+ pub type THandlerOutUpgradeFuture < TBehaviour > =
157+ <THandlerOutProtocol < TBehaviour > as OutboundUpgradeSend >:: Future ;
158+ }
159+ #[ cfg( feature = "experimental-macros" ) ]
160+ pub use experimental:: * ;
154161}
155162
156163pub use behaviour:: {
0 commit comments