@@ -1036,22 +1036,6 @@ impl DeleteSmsMessageOperation {
10361036 }
10371037}
10381038#[ cfg( feature = "deprecated" ) ]
1039- impl std:: future:: Future for DeleteSmsMessageOperation {
1040- type Output = windows_core:: Result < ( ) > ;
1041- fn poll ( self : std:: pin:: Pin < & mut Self > , context : & mut std:: task:: Context < ' _ > ) -> std:: task:: Poll < Self :: Output > {
1042- if self . Status ( ) ? == super :: super :: Foundation :: AsyncStatus :: Started {
1043- let waker = context. waker ( ) . clone ( ) ;
1044- let _ = self . SetCompleted ( & super :: super :: Foundation :: AsyncActionCompletedHandler :: new ( move |_sender, _args| {
1045- waker. wake_by_ref ( ) ;
1046- Ok ( ( ) )
1047- } ) ) ;
1048- std:: task:: Poll :: Pending
1049- } else {
1050- std:: task:: Poll :: Ready ( self . GetResults ( ) )
1051- }
1052- }
1053- }
1054- #[ cfg( feature = "deprecated" ) ]
10551039#[ repr( transparent) ]
10561040#[ derive( PartialEq , Eq , Debug , Clone ) ]
10571041pub struct DeleteSmsMessagesOperation ( windows_core:: IUnknown ) ;
@@ -1138,22 +1122,6 @@ impl DeleteSmsMessagesOperation {
11381122 }
11391123}
11401124#[ cfg( feature = "deprecated" ) ]
1141- impl std:: future:: Future for DeleteSmsMessagesOperation {
1142- type Output = windows_core:: Result < ( ) > ;
1143- fn poll ( self : std:: pin:: Pin < & mut Self > , context : & mut std:: task:: Context < ' _ > ) -> std:: task:: Poll < Self :: Output > {
1144- if self . Status ( ) ? == super :: super :: Foundation :: AsyncStatus :: Started {
1145- let waker = context. waker ( ) . clone ( ) ;
1146- let _ = self . SetCompleted ( & super :: super :: Foundation :: AsyncActionCompletedHandler :: new ( move |_sender, _args| {
1147- waker. wake_by_ref ( ) ;
1148- Ok ( ( ) )
1149- } ) ) ;
1150- std:: task:: Poll :: Pending
1151- } else {
1152- std:: task:: Poll :: Ready ( self . GetResults ( ) )
1153- }
1154- }
1155- }
1156- #[ cfg( feature = "deprecated" ) ]
11571125#[ repr( transparent) ]
11581126#[ derive( PartialEq , Eq , Debug , Clone ) ]
11591127pub struct GetSmsDeviceOperation ( windows_core:: IUnknown ) ;
@@ -1243,22 +1211,6 @@ impl GetSmsDeviceOperation {
12431211 }
12441212}
12451213#[ cfg( feature = "deprecated" ) ]
1246- impl std:: future:: Future for GetSmsDeviceOperation {
1247- type Output = windows_core:: Result < SmsDevice > ;
1248- fn poll ( self : std:: pin:: Pin < & mut Self > , context : & mut std:: task:: Context < ' _ > ) -> std:: task:: Poll < Self :: Output > {
1249- if self . Status ( ) ? == super :: super :: Foundation :: AsyncStatus :: Started {
1250- let waker = context. waker ( ) . clone ( ) ;
1251- let _ = self . SetCompleted ( & super :: super :: Foundation :: AsyncOperationCompletedHandler :: new ( move |_sender, _args| {
1252- waker. wake_by_ref ( ) ;
1253- Ok ( ( ) )
1254- } ) ) ;
1255- std:: task:: Poll :: Pending
1256- } else {
1257- std:: task:: Poll :: Ready ( self . GetResults ( ) )
1258- }
1259- }
1260- }
1261- #[ cfg( feature = "deprecated" ) ]
12621214#[ repr( transparent) ]
12631215#[ derive( PartialEq , Eq , Debug , Clone ) ]
12641216pub struct GetSmsMessageOperation ( windows_core:: IUnknown ) ;
@@ -1347,22 +1299,6 @@ impl GetSmsMessageOperation {
13471299 self . GetResults ( )
13481300 }
13491301}
1350- #[ cfg( feature = "deprecated" ) ]
1351- impl std:: future:: Future for GetSmsMessageOperation {
1352- type Output = windows_core:: Result < ISmsMessage > ;
1353- fn poll ( self : std:: pin:: Pin < & mut Self > , context : & mut std:: task:: Context < ' _ > ) -> std:: task:: Poll < Self :: Output > {
1354- if self . Status ( ) ? == super :: super :: Foundation :: AsyncStatus :: Started {
1355- let waker = context. waker ( ) . clone ( ) ;
1356- let _ = self . SetCompleted ( & super :: super :: Foundation :: AsyncOperationCompletedHandler :: new ( move |_sender, _args| {
1357- waker. wake_by_ref ( ) ;
1358- Ok ( ( ) )
1359- } ) ) ;
1360- std:: task:: Poll :: Pending
1361- } else {
1362- std:: task:: Poll :: Ready ( self . GetResults ( ) )
1363- }
1364- }
1365- }
13661302#[ cfg( all( feature = "Foundation_Collections" , feature = "deprecated" ) ) ]
13671303#[ repr( transparent) ]
13681304#[ derive( PartialEq , Eq , Debug , Clone ) ]
@@ -1471,22 +1407,6 @@ impl GetSmsMessagesOperation {
14711407 self . GetResults ( )
14721408 }
14731409}
1474- #[ cfg( all( feature = "Foundation_Collections" , feature = "deprecated" ) ) ]
1475- impl std:: future:: Future for GetSmsMessagesOperation {
1476- type Output = windows_core:: Result < super :: super :: Foundation :: Collections :: IVectorView < ISmsMessage > > ;
1477- fn poll ( self : std:: pin:: Pin < & mut Self > , context : & mut std:: task:: Context < ' _ > ) -> std:: task:: Poll < Self :: Output > {
1478- if self . Status ( ) ? == super :: super :: Foundation :: AsyncStatus :: Started {
1479- let waker = context. waker ( ) . clone ( ) ;
1480- let _ = self . SetCompleted ( & super :: super :: Foundation :: AsyncOperationWithProgressCompletedHandler :: new ( move |_sender, _args| {
1481- waker. wake_by_ref ( ) ;
1482- Ok ( ( ) )
1483- } ) ) ;
1484- std:: task:: Poll :: Pending
1485- } else {
1486- std:: task:: Poll :: Ready ( self . GetResults ( ) )
1487- }
1488- }
1489- }
14901410#[ cfg( feature = "deprecated" ) ]
14911411#[ repr( transparent) ]
14921412#[ derive( PartialEq , Eq , Debug , Clone ) ]
@@ -1573,22 +1493,6 @@ impl SendSmsMessageOperation {
15731493 self . GetResults ( )
15741494 }
15751495}
1576- #[ cfg( feature = "deprecated" ) ]
1577- impl std:: future:: Future for SendSmsMessageOperation {
1578- type Output = windows_core:: Result < ( ) > ;
1579- fn poll ( self : std:: pin:: Pin < & mut Self > , context : & mut std:: task:: Context < ' _ > ) -> std:: task:: Poll < Self :: Output > {
1580- if self . Status ( ) ? == super :: super :: Foundation :: AsyncStatus :: Started {
1581- let waker = context. waker ( ) . clone ( ) ;
1582- let _ = self . SetCompleted ( & super :: super :: Foundation :: AsyncActionCompletedHandler :: new ( move |_sender, _args| {
1583- waker. wake_by_ref ( ) ;
1584- Ok ( ( ) )
1585- } ) ) ;
1586- std:: task:: Poll :: Pending
1587- } else {
1588- std:: task:: Poll :: Ready ( self . GetResults ( ) )
1589- }
1590- }
1591- }
15921496#[ repr( transparent) ]
15931497#[ derive( PartialEq , Eq , Debug , Clone ) ]
15941498pub struct SmsAppMessage ( windows_core:: IUnknown ) ;
0 commit comments