@@ -45,10 +45,12 @@ use crate::p2p::network::kad::stream::P2pNetworkKademliaStreamAction;
4545use crate :: p2p:: network:: kad:: { P2pNetworkKadAction , P2pNetworkKademliaAction } ;
4646use crate :: p2p:: network:: noise:: P2pNetworkNoiseAction ;
4747use crate :: p2p:: network:: pnet:: P2pNetworkPnetAction ;
48+ use crate :: p2p:: network:: pnet_effectful:: P2pNetworkPnetEffectfulAction ;
4849use crate :: p2p:: network:: pubsub:: pubsub_effectful:: P2pNetworkPubsubEffectfulAction ;
4950use crate :: p2p:: network:: pubsub:: P2pNetworkPubsubAction ;
5051use crate :: p2p:: network:: rpc:: P2pNetworkRpcAction ;
5152use crate :: p2p:: network:: scheduler:: P2pNetworkSchedulerAction ;
53+ use crate :: p2p:: network:: scheduler_effectful:: P2pNetworkSchedulerEffectfulAction ;
5254use crate :: p2p:: network:: select:: P2pNetworkSelectAction ;
5355use crate :: p2p:: network:: yamux:: P2pNetworkYamuxAction ;
5456use crate :: p2p:: network:: P2pNetworkAction ;
@@ -306,6 +308,8 @@ pub enum ActionKind {
306308 P2pNetworkPnetOutgoingData ,
307309 P2pNetworkPnetSetupNonce ,
308310 P2pNetworkPnetTimeout ,
311+ P2pNetworkPnetEffectfulOutgoingData ,
312+ P2pNetworkPnetEffectfulSetupNonce ,
309313 P2pNetworkPubsubBroadcast ,
310314 P2pNetworkPubsubBroadcastSigned ,
311315 P2pNetworkPubsubGraft ,
@@ -331,7 +335,6 @@ pub enum ActionKind {
331335 P2pNetworkSchedulerDisconnect ,
332336 P2pNetworkSchedulerDisconnected ,
333337 P2pNetworkSchedulerError ,
334- P2pNetworkSchedulerIncomingConnectionIsReady ,
335338 P2pNetworkSchedulerIncomingDataDidReceive ,
336339 P2pNetworkSchedulerIncomingDataIsReady ,
337340 P2pNetworkSchedulerIncomingDidAccept ,
@@ -347,6 +350,16 @@ pub enum ActionKind {
347350 P2pNetworkSchedulerSelectDone ,
348351 P2pNetworkSchedulerSelectError ,
349352 P2pNetworkSchedulerYamuxDidInit ,
353+ P2pNetworkSchedulerEffectfulDisconnect ,
354+ P2pNetworkSchedulerEffectfulError ,
355+ P2pNetworkSchedulerEffectfulIncomingConnectionIsReady ,
356+ P2pNetworkSchedulerEffectfulIncomingDataIsReady ,
357+ P2pNetworkSchedulerEffectfulIncomingDidAccept ,
358+ P2pNetworkSchedulerEffectfulInterfaceDetected ,
359+ P2pNetworkSchedulerEffectfulNoiseSelectDone ,
360+ P2pNetworkSchedulerEffectfulOutgoingConnect ,
361+ P2pNetworkSchedulerEffectfulOutgoingDidConnect ,
362+ P2pNetworkSchedulerEffectfulSelectError ,
350363 P2pNetworkSelectIncomingData ,
351364 P2pNetworkSelectIncomingDataAuth ,
352365 P2pNetworkSelectIncomingDataMux ,
@@ -548,7 +561,7 @@ pub enum ActionKind {
548561}
549562
550563impl ActionKind {
551- pub const COUNT : u16 = 454 ;
564+ pub const COUNT : u16 = 465 ;
552565}
553566
554567impl std:: fmt:: Display for ActionKind {
@@ -946,7 +959,9 @@ impl ActionKindGet for P2pNetworkAction {
946959 fn kind ( & self ) -> ActionKind {
947960 match self {
948961 Self :: Scheduler ( a) => a. kind ( ) ,
962+ Self :: SchedulerEffectful ( a) => a. kind ( ) ,
949963 Self :: Pnet ( a) => a. kind ( ) ,
964+ Self :: PnetEffectful ( a) => a. kind ( ) ,
950965 Self :: Select ( a) => a. kind ( ) ,
951966 Self :: Noise ( a) => a. kind ( ) ,
952967 Self :: Yamux ( a) => a. kind ( ) ,
@@ -1371,13 +1386,10 @@ impl ActionKindGet for P2pNetworkSchedulerAction {
13711386 Self :: InterfaceExpired { .. } => ActionKind :: P2pNetworkSchedulerInterfaceExpired ,
13721387 Self :: ListenerReady { .. } => ActionKind :: P2pNetworkSchedulerListenerReady ,
13731388 Self :: ListenerError { .. } => ActionKind :: P2pNetworkSchedulerListenerError ,
1374- Self :: IncomingConnectionIsReady { .. } => {
1375- ActionKind :: P2pNetworkSchedulerIncomingConnectionIsReady
1376- }
13771389 Self :: IncomingDidAccept { .. } => ActionKind :: P2pNetworkSchedulerIncomingDidAccept ,
1390+ Self :: IncomingDataIsReady { .. } => ActionKind :: P2pNetworkSchedulerIncomingDataIsReady ,
13781391 Self :: OutgoingConnect { .. } => ActionKind :: P2pNetworkSchedulerOutgoingConnect ,
13791392 Self :: OutgoingDidConnect { .. } => ActionKind :: P2pNetworkSchedulerOutgoingDidConnect ,
1380- Self :: IncomingDataIsReady { .. } => ActionKind :: P2pNetworkSchedulerIncomingDataIsReady ,
13811393 Self :: IncomingDataDidReceive { .. } => {
13821394 ActionKind :: P2pNetworkSchedulerIncomingDataDidReceive
13831395 }
@@ -1394,6 +1406,33 @@ impl ActionKindGet for P2pNetworkSchedulerAction {
13941406 }
13951407}
13961408
1409+ impl ActionKindGet for P2pNetworkSchedulerEffectfulAction {
1410+ fn kind ( & self ) -> ActionKind {
1411+ match self {
1412+ Self :: InterfaceDetected { .. } => {
1413+ ActionKind :: P2pNetworkSchedulerEffectfulInterfaceDetected
1414+ }
1415+ Self :: IncomingConnectionIsReady { .. } => {
1416+ ActionKind :: P2pNetworkSchedulerEffectfulIncomingConnectionIsReady
1417+ }
1418+ Self :: IncomingDidAccept { .. } => {
1419+ ActionKind :: P2pNetworkSchedulerEffectfulIncomingDidAccept
1420+ }
1421+ Self :: OutgoingConnect { .. } => ActionKind :: P2pNetworkSchedulerEffectfulOutgoingConnect ,
1422+ Self :: OutgoingDidConnect { .. } => {
1423+ ActionKind :: P2pNetworkSchedulerEffectfulOutgoingDidConnect
1424+ }
1425+ Self :: IncomingDataIsReady { .. } => {
1426+ ActionKind :: P2pNetworkSchedulerEffectfulIncomingDataIsReady
1427+ }
1428+ Self :: NoiseSelectDone { .. } => ActionKind :: P2pNetworkSchedulerEffectfulNoiseSelectDone ,
1429+ Self :: SelectError { .. } => ActionKind :: P2pNetworkSchedulerEffectfulSelectError ,
1430+ Self :: Disconnect { .. } => ActionKind :: P2pNetworkSchedulerEffectfulDisconnect ,
1431+ Self :: Error { .. } => ActionKind :: P2pNetworkSchedulerEffectfulError ,
1432+ }
1433+ }
1434+ }
1435+
13971436impl ActionKindGet for P2pNetworkPnetAction {
13981437 fn kind ( & self ) -> ActionKind {
13991438 match self {
@@ -1405,6 +1444,15 @@ impl ActionKindGet for P2pNetworkPnetAction {
14051444 }
14061445}
14071446
1447+ impl ActionKindGet for P2pNetworkPnetEffectfulAction {
1448+ fn kind ( & self ) -> ActionKind {
1449+ match self {
1450+ Self :: OutgoingData { .. } => ActionKind :: P2pNetworkPnetEffectfulOutgoingData ,
1451+ Self :: SetupNonce { .. } => ActionKind :: P2pNetworkPnetEffectfulSetupNonce ,
1452+ }
1453+ }
1454+ }
1455+
14081456impl ActionKindGet for P2pNetworkSelectAction {
14091457 fn kind ( & self ) -> ActionKind {
14101458 match self {
0 commit comments