@@ -49,6 +49,7 @@ use crate::p2p::network::pubsub::pubsub_effectful::P2pNetworkPubsubEffectfulActi
4949use crate :: p2p:: network:: pubsub:: P2pNetworkPubsubAction ;
5050use crate :: p2p:: network:: rpc:: P2pNetworkRpcAction ;
5151use crate :: p2p:: network:: scheduler:: P2pNetworkSchedulerAction ;
52+ use crate :: p2p:: network:: scheduler_effectful:: P2pNetworkSchedulerEffectfulAction ;
5253use crate :: p2p:: network:: select:: P2pNetworkSelectAction ;
5354use crate :: p2p:: network:: yamux:: P2pNetworkYamuxAction ;
5455use crate :: p2p:: network:: P2pNetworkAction ;
@@ -331,9 +332,7 @@ pub enum ActionKind {
331332 P2pNetworkSchedulerDisconnect ,
332333 P2pNetworkSchedulerDisconnected ,
333334 P2pNetworkSchedulerError ,
334- P2pNetworkSchedulerIncomingConnectionIsReady ,
335335 P2pNetworkSchedulerIncomingDataDidReceive ,
336- P2pNetworkSchedulerIncomingDataIsReady ,
337336 P2pNetworkSchedulerIncomingDidAccept ,
338337 P2pNetworkSchedulerInterfaceDetected ,
339338 P2pNetworkSchedulerInterfaceExpired ,
@@ -345,8 +344,17 @@ pub enum ActionKind {
345344 P2pNetworkSchedulerPruneStream ,
346345 P2pNetworkSchedulerPruneStreams ,
347346 P2pNetworkSchedulerSelectDone ,
348- P2pNetworkSchedulerSelectError ,
349347 P2pNetworkSchedulerYamuxDidInit ,
348+ P2pNetworkSchedulerEffectfulDisconnect ,
349+ P2pNetworkSchedulerEffectfulError ,
350+ P2pNetworkSchedulerEffectfulIncomingConnectionIsReady ,
351+ P2pNetworkSchedulerEffectfulIncomingDataIsReady ,
352+ P2pNetworkSchedulerEffectfulIncomingDidAccept ,
353+ P2pNetworkSchedulerEffectfulInterfaceDetected ,
354+ P2pNetworkSchedulerEffectfulOutgoingConnect ,
355+ P2pNetworkSchedulerEffectfulOutgoingDidConnect ,
356+ P2pNetworkSchedulerEffectfulSelectDone ,
357+ P2pNetworkSchedulerEffectfulSelectError ,
350358 P2pNetworkSelectIncomingData ,
351359 P2pNetworkSelectIncomingDataAuth ,
352360 P2pNetworkSelectIncomingDataMux ,
@@ -548,7 +556,7 @@ pub enum ActionKind {
548556}
549557
550558impl ActionKind {
551- pub const COUNT : u16 = 454 ;
559+ pub const COUNT : u16 = 461 ;
552560}
553561
554562impl std:: fmt:: Display for ActionKind {
@@ -946,6 +954,7 @@ impl ActionKindGet for P2pNetworkAction {
946954 fn kind ( & self ) -> ActionKind {
947955 match self {
948956 Self :: Scheduler ( a) => a. kind ( ) ,
957+ Self :: SchedulerEffectful ( a) => a. kind ( ) ,
949958 Self :: Pnet ( a) => a. kind ( ) ,
950959 Self :: Select ( a) => a. kind ( ) ,
951960 Self :: Noise ( a) => a. kind ( ) ,
@@ -1371,18 +1380,13 @@ impl ActionKindGet for P2pNetworkSchedulerAction {
13711380 Self :: InterfaceExpired { .. } => ActionKind :: P2pNetworkSchedulerInterfaceExpired ,
13721381 Self :: ListenerReady { .. } => ActionKind :: P2pNetworkSchedulerListenerReady ,
13731382 Self :: ListenerError { .. } => ActionKind :: P2pNetworkSchedulerListenerError ,
1374- Self :: IncomingConnectionIsReady { .. } => {
1375- ActionKind :: P2pNetworkSchedulerIncomingConnectionIsReady
1376- }
13771383 Self :: IncomingDidAccept { .. } => ActionKind :: P2pNetworkSchedulerIncomingDidAccept ,
13781384 Self :: OutgoingConnect { .. } => ActionKind :: P2pNetworkSchedulerOutgoingConnect ,
13791385 Self :: OutgoingDidConnect { .. } => ActionKind :: P2pNetworkSchedulerOutgoingDidConnect ,
1380- Self :: IncomingDataIsReady { .. } => ActionKind :: P2pNetworkSchedulerIncomingDataIsReady ,
13811386 Self :: IncomingDataDidReceive { .. } => {
13821387 ActionKind :: P2pNetworkSchedulerIncomingDataDidReceive
13831388 }
13841389 Self :: SelectDone { .. } => ActionKind :: P2pNetworkSchedulerSelectDone ,
1385- Self :: SelectError { .. } => ActionKind :: P2pNetworkSchedulerSelectError ,
13861390 Self :: YamuxDidInit { .. } => ActionKind :: P2pNetworkSchedulerYamuxDidInit ,
13871391 Self :: Disconnect { .. } => ActionKind :: P2pNetworkSchedulerDisconnect ,
13881392 Self :: Error { .. } => ActionKind :: P2pNetworkSchedulerError ,
@@ -1394,6 +1398,33 @@ impl ActionKindGet for P2pNetworkSchedulerAction {
13941398 }
13951399}
13961400
1401+ impl ActionKindGet for P2pNetworkSchedulerEffectfulAction {
1402+ fn kind ( & self ) -> ActionKind {
1403+ match self {
1404+ Self :: InterfaceDetected { .. } => {
1405+ ActionKind :: P2pNetworkSchedulerEffectfulInterfaceDetected
1406+ }
1407+ Self :: IncomingConnectionIsReady { .. } => {
1408+ ActionKind :: P2pNetworkSchedulerEffectfulIncomingConnectionIsReady
1409+ }
1410+ Self :: IncomingDidAccept { .. } => {
1411+ ActionKind :: P2pNetworkSchedulerEffectfulIncomingDidAccept
1412+ }
1413+ Self :: OutgoingConnect { .. } => ActionKind :: P2pNetworkSchedulerEffectfulOutgoingConnect ,
1414+ Self :: OutgoingDidConnect { .. } => {
1415+ ActionKind :: P2pNetworkSchedulerEffectfulOutgoingDidConnect
1416+ }
1417+ Self :: IncomingDataIsReady { .. } => {
1418+ ActionKind :: P2pNetworkSchedulerEffectfulIncomingDataIsReady
1419+ }
1420+ Self :: SelectDone { .. } => ActionKind :: P2pNetworkSchedulerEffectfulSelectDone ,
1421+ Self :: SelectError { .. } => ActionKind :: P2pNetworkSchedulerEffectfulSelectError ,
1422+ Self :: Disconnect { .. } => ActionKind :: P2pNetworkSchedulerEffectfulDisconnect ,
1423+ Self :: Error { .. } => ActionKind :: P2pNetworkSchedulerEffectfulError ,
1424+ }
1425+ }
1426+ }
1427+
13971428impl ActionKindGet for P2pNetworkPnetAction {
13981429 fn kind ( & self ) -> ActionKind {
13991430 match self {
0 commit comments