diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7a525d18c6..47ea97ea1a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -67,59 +67,59 @@ jobs: - name: Test stable (${{ matrix.os }}) run: | - cargo test --target ${{ matrix.other }} -p test_agile - cargo test --target ${{ matrix.other }} -p test_alternate_success_code - cargo test --target ${{ matrix.other }} -p test_arch - cargo test --target ${{ matrix.other }} -p test_arch_feature - cargo test --target ${{ matrix.other }} -p test_bstr - cargo test --target ${{ matrix.other }} -p test_core - cargo test --target ${{ matrix.other }} -p test_debug - cargo test --target ${{ matrix.other }} -p test_deprecated - cargo test --target ${{ matrix.other }} -p test_enums - cargo test --target ${{ matrix.other }} -p test_handles - cargo test --target ${{ matrix.other }} -p test_helpers - cargo test --target ${{ matrix.other }} -p test_implement - cargo test --target ${{ matrix.other }} -p test_interop - cargo test --target ${{ matrix.other }} -p test_lib - cargo test --target ${{ matrix.other }} -p test_matrix3x2 - cargo test --target ${{ matrix.other }} -p test_mshtml - cargo test --target ${{ matrix.other }} -p test_ntstatus - cargo test --target ${{ matrix.other }} -p test_pwstr - cargo test --target ${{ matrix.other }} -p test_return_struct - cargo test --target ${{ matrix.other }} -p test_structs - cargo test --target ${{ matrix.other }} -p test_sys - cargo test --target ${{ matrix.other }} -p test_unions - cargo test --target ${{ matrix.other }} -p test_weak - cargo test --target ${{ matrix.other }} -p test_win32 - cargo test --target ${{ matrix.other }} -p test_win32_arrays + cargo test --target ${{ matrix.other }} -p test_agile && + cargo test --target ${{ matrix.other }} -p test_alternate_success_code && + cargo test --target ${{ matrix.other }} -p test_arch && + cargo test --target ${{ matrix.other }} -p test_arch_feature && + cargo test --target ${{ matrix.other }} -p test_bstr && + cargo test --target ${{ matrix.other }} -p test_core && + cargo test --target ${{ matrix.other }} -p test_debug && + cargo test --target ${{ matrix.other }} -p test_deprecated && + cargo test --target ${{ matrix.other }} -p test_enums && + cargo test --target ${{ matrix.other }} -p test_handles && + cargo test --target ${{ matrix.other }} -p test_helpers && + cargo test --target ${{ matrix.other }} -p test_interop && + cargo test --target ${{ matrix.other }} -p test_lib && + cargo test --target ${{ matrix.other }} -p test_matrix3x2 && + cargo test --target ${{ matrix.other }} -p test_mshtml && + cargo test --target ${{ matrix.other }} -p test_ntstatus && + cargo test --target ${{ matrix.other }} -p test_pwstr && + cargo test --target ${{ matrix.other }} -p test_return_struct && + cargo test --target ${{ matrix.other }} -p test_structs && + cargo test --target ${{ matrix.other }} -p test_sys && + cargo test --target ${{ matrix.other }} -p test_unions && + cargo test --target ${{ matrix.other }} -p test_weak && + cargo test --target ${{ matrix.other }} -p test_win32 && + cargo test --target ${{ matrix.other }} -p test_win32_arrays if: contains(matrix.rust, 'stable') - name: Test nightly (${{ matrix.os }}) run: | - cargo test --target ${{ matrix.other }} -p test_implement_class_factory - cargo test --target ${{ matrix.other }} -p test_implement_data_object - cargo test --target ${{ matrix.other }} -p test_implement_identity - cargo test --target ${{ matrix.other }} -p test_implement_map - cargo test --target ${{ matrix.other }} -p test_implement_no_use - cargo test --target ${{ matrix.other }} -p test_implement_null_result - cargo test --target ${{ matrix.other }} -p test_implement_winrt - cargo test --target ${{ matrix.other }} -p com_uri - cargo test --target ${{ matrix.other }} -p core_app - cargo test --target ${{ matrix.other }} -p create_window - cargo test --target ${{ matrix.other }} -p create_window_sys - cargo test --target ${{ matrix.other }} -p direct2d - cargo test --target ${{ matrix.other }} -p direct3d12 - cargo test --target ${{ matrix.other }} -p enum_windows - cargo test --target ${{ matrix.other }} -p enum_windows_sys - cargo test --target ${{ matrix.other }} -p kernel_event - cargo test --target ${{ matrix.other }} -p memory_buffer - cargo test --target ${{ matrix.other }} -p message_box - cargo test --target ${{ matrix.other }} -p ocr - cargo test --target ${{ matrix.other }} -p overlapped - cargo test --target ${{ matrix.other }} -p rss - cargo test --target ${{ matrix.other }} -p simple - cargo test --target ${{ matrix.other }} -p spellchecker - cargo test --target ${{ matrix.other }} -p uiautomation - cargo test --target ${{ matrix.other }} -p xaml_app - cargo test --target ${{ matrix.other }} -p xml + cargo test --target ${{ matrix.other }} -p test_implement && + cargo test --target ${{ matrix.other }} -p test_implement_class_factory && + cargo test --target ${{ matrix.other }} -p test_implement_data_object && + cargo test --target ${{ matrix.other }} -p test_implement_identity && + cargo test --target ${{ matrix.other }} -p test_implement_map && + cargo test --target ${{ matrix.other }} -p test_implement_no_use && + cargo test --target ${{ matrix.other }} -p test_implement_null_result && + cargo test --target ${{ matrix.other }} -p test_implement_winrt && + cargo test --target ${{ matrix.other }} -p com_uri && + cargo test --target ${{ matrix.other }} -p core_app && + cargo test --target ${{ matrix.other }} -p create_window && + cargo test --target ${{ matrix.other }} -p create_window_sys && + cargo test --target ${{ matrix.other }} -p direct2d && + cargo test --target ${{ matrix.other }} -p direct3d12 && + cargo test --target ${{ matrix.other }} -p enum_windows && + cargo test --target ${{ matrix.other }} -p enum_windows_sys && + cargo test --target ${{ matrix.other }} -p kernel_event && + cargo test --target ${{ matrix.other }} -p memory_buffer && + cargo test --target ${{ matrix.other }} -p message_box && + cargo test --target ${{ matrix.other }} -p ocr && + cargo test --target ${{ matrix.other }} -p overlapped && + cargo test --target ${{ matrix.other }} -p rss && + cargo test --target ${{ matrix.other }} -p simple && + cargo test --target ${{ matrix.other }} -p spellchecker && + cargo test --target ${{ matrix.other }} -p uiautomation && + cargo test --target ${{ matrix.other }} -p xaml_app && + cargo test --target ${{ matrix.other }} -p xml if: contains(matrix.rust, 'nightly') diff --git a/crates/libs/bindgen/src/delegates.rs b/crates/libs/bindgen/src/delegates.rs index 549925c694..a3928319aa 100644 --- a/crates/libs/bindgen/src/delegates.rs +++ b/crates/libs/bindgen/src/delegates.rs @@ -117,5 +117,5 @@ fn gen_win_delegate(def: &TypeDef, gen: &Gen) -> TokenStream { fn gen_fn_constraint(def: &TypeDef, method: &MethodDef, gen: &Gen) -> TokenStream { let signature = gen_impl_signature(def, method, gen); - quote! { F: FnMut #signature + 'static } + quote! { F: FnMut #signature + ::core::marker::Send + 'static } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs index 55032ed45c..84eb147a53 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs @@ -1146,7 +1146,7 @@ impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &Back #[repr(transparent)] pub struct BackgroundTaskCanceledEventHandler(pub ::windows::core::IUnknown); impl BackgroundTaskCanceledEventHandler { - pub fn new, BackgroundTaskCancellationReason) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, BackgroundTaskCancellationReason) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = BackgroundTaskCanceledEventHandlerBox:: { vtable: &BackgroundTaskCanceledEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1157,12 +1157,12 @@ impl BackgroundTaskCanceledEventHandler { } } #[repr(C)] -struct BackgroundTaskCanceledEventHandlerBox, BackgroundTaskCancellationReason) -> ::windows::core::Result<()> + 'static> { +struct BackgroundTaskCanceledEventHandlerBox, BackgroundTaskCancellationReason) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const BackgroundTaskCanceledEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, BackgroundTaskCancellationReason) -> ::windows::core::Result<()> + 'static> BackgroundTaskCanceledEventHandlerBox { +impl, BackgroundTaskCancellationReason) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> BackgroundTaskCanceledEventHandlerBox { const VTABLE: BackgroundTaskCanceledEventHandler_Vtbl = BackgroundTaskCanceledEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1353,7 +1353,7 @@ unsafe impl ::core::marker::Sync for BackgroundTaskCompletedEventArgs {} #[repr(transparent)] pub struct BackgroundTaskCompletedEventHandler(pub ::windows::core::IUnknown); impl BackgroundTaskCompletedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = BackgroundTaskCompletedEventHandlerBox:: { vtable: &BackgroundTaskCompletedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1364,12 +1364,12 @@ impl BackgroundTaskCompletedEventHandler { } } #[repr(C)] -struct BackgroundTaskCompletedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct BackgroundTaskCompletedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const BackgroundTaskCompletedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> BackgroundTaskCompletedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> BackgroundTaskCompletedEventHandlerBox { const VTABLE: BackgroundTaskCompletedEventHandler_Vtbl = BackgroundTaskCompletedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1598,7 +1598,7 @@ unsafe impl ::core::marker::Sync for BackgroundTaskProgressEventArgs {} #[repr(transparent)] pub struct BackgroundTaskProgressEventHandler(pub ::windows::core::IUnknown); impl BackgroundTaskProgressEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = BackgroundTaskProgressEventHandlerBox:: { vtable: &BackgroundTaskProgressEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1609,12 +1609,12 @@ impl BackgroundTaskProgressEventHandler { } } #[repr(C)] -struct BackgroundTaskProgressEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct BackgroundTaskProgressEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const BackgroundTaskProgressEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> BackgroundTaskProgressEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> BackgroundTaskProgressEventHandlerBox { const VTABLE: BackgroundTaskProgressEventHandler_Vtbl = BackgroundTaskProgressEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs index 7a74fd5bba..f330edf1eb 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs @@ -1871,7 +1871,7 @@ unsafe impl ::core::marker::Sync for DataProviderDeferral {} #[repr(transparent)] pub struct DataProviderHandler(pub ::windows::core::IUnknown); impl DataProviderHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DataProviderHandlerBox:: { vtable: &DataProviderHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1882,12 +1882,12 @@ impl DataProviderHandler { } } #[repr(C)] -struct DataProviderHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct DataProviderHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DataProviderHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> DataProviderHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DataProviderHandlerBox { const VTABLE: DataProviderHandler_Vtbl = DataProviderHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -3817,7 +3817,7 @@ unsafe impl ::core::marker::Sync for ShareProvider {} #[repr(transparent)] pub struct ShareProviderHandler(pub ::windows::core::IUnknown); impl ShareProviderHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ShareProviderHandlerBox:: { vtable: &ShareProviderHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3828,12 +3828,12 @@ impl ShareProviderHandler { } } #[repr(C)] -struct ShareProviderHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct ShareProviderHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ShareProviderHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> ShareProviderHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ShareProviderHandlerBox { const VTABLE: ShareProviderHandler_Vtbl = ShareProviderHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs index 4294ecd3b3..efad1e4f0d 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs @@ -2311,7 +2311,7 @@ unsafe impl ::core::marker::Sync for PaymentRequestChangedArgs {} #[repr(transparent)] pub struct PaymentRequestChangedHandler(pub ::windows::core::IUnknown); impl PaymentRequestChangedHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = PaymentRequestChangedHandlerBox:: { vtable: &PaymentRequestChangedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -2322,12 +2322,12 @@ impl PaymentRequestChangedHandler { } } #[repr(C)] -struct PaymentRequestChangedHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct PaymentRequestChangedHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const PaymentRequestChangedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> PaymentRequestChangedHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> PaymentRequestChangedHandlerBox { const VTABLE: PaymentRequestChangedHandler_Vtbl = PaymentRequestChangedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs index 6652ee4a36..30fbb9785b 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs @@ -834,7 +834,7 @@ pub struct IUnfulfilledConsumable_Vtbl { #[repr(transparent)] pub struct LicenseChangedEventHandler(pub ::windows::core::IUnknown); impl LicenseChangedEventHandler { - pub fn new ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = LicenseChangedEventHandlerBox:: { vtable: &LicenseChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -845,12 +845,12 @@ impl LicenseChangedEventHandler { } } #[repr(C)] -struct LicenseChangedEventHandlerBox ::windows::core::Result<()> + 'static> { +struct LicenseChangedEventHandlerBox ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const LicenseChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl ::windows::core::Result<()> + 'static> LicenseChangedEventHandlerBox { +impl ::windows::core::Result<()> + ::core::marker::Send + 'static> LicenseChangedEventHandlerBox { const VTABLE: LicenseChangedEventHandler_Vtbl = LicenseChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Data/Text/mod.rs b/crates/libs/windows/src/Windows/Data/Text/mod.rs index 6c9ac583bb..7fe8c56975 100644 --- a/crates/libs/windows/src/Windows/Data/Text/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Text/mod.rs @@ -566,7 +566,7 @@ unsafe impl ::core::marker::Sync for SelectableWordSegment {} pub struct SelectableWordSegmentsTokenizingHandler(pub ::windows::core::IUnknown); #[cfg(feature = "Foundation_Collections")] impl SelectableWordSegmentsTokenizingHandler { - pub fn new>, &::core::option::Option>) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new>, &::core::option::Option>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SelectableWordSegmentsTokenizingHandlerBox:: { vtable: &SelectableWordSegmentsTokenizingHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -579,13 +579,13 @@ impl SelectableWordSegmentsTokenizingHandler { } #[cfg(feature = "Foundation_Collections")] #[repr(C)] -struct SelectableWordSegmentsTokenizingHandlerBox>, &::core::option::Option>) -> ::windows::core::Result<()> + 'static> { +struct SelectableWordSegmentsTokenizingHandlerBox>, &::core::option::Option>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SelectableWordSegmentsTokenizingHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "Foundation_Collections")] -impl>, &::core::option::Option>) -> ::windows::core::Result<()> + 'static> SelectableWordSegmentsTokenizingHandlerBox { +impl>, &::core::option::Option>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SelectableWordSegmentsTokenizingHandlerBox { const VTABLE: SelectableWordSegmentsTokenizingHandler_Vtbl = SelectableWordSegmentsTokenizingHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1789,7 +1789,7 @@ unsafe impl ::core::marker::Sync for WordSegment {} pub struct WordSegmentsTokenizingHandler(pub ::windows::core::IUnknown); #[cfg(feature = "Foundation_Collections")] impl WordSegmentsTokenizingHandler { - pub fn new>, &::core::option::Option>) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new>, &::core::option::Option>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WordSegmentsTokenizingHandlerBox:: { vtable: &WordSegmentsTokenizingHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1802,13 +1802,13 @@ impl WordSegmentsTokenizingHandler { } #[cfg(feature = "Foundation_Collections")] #[repr(C)] -struct WordSegmentsTokenizingHandlerBox>, &::core::option::Option>) -> ::windows::core::Result<()> + 'static> { +struct WordSegmentsTokenizingHandlerBox>, &::core::option::Option>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const WordSegmentsTokenizingHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "Foundation_Collections")] -impl>, &::core::option::Option>) -> ::windows::core::Result<()> + 'static> WordSegmentsTokenizingHandlerBox { +impl>, &::core::option::Option>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> WordSegmentsTokenizingHandlerBox { const VTABLE: WordSegmentsTokenizingHandler_Vtbl = WordSegmentsTokenizingHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Devices/Perception/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/Perception/Provider/mod.rs index c56840c27e..9dcfcaa314 100644 --- a/crates/libs/windows/src/Windows/Devices/Perception/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Perception/Provider/mod.rs @@ -1753,7 +1753,7 @@ unsafe impl ::core::marker::Sync for PerceptionPropertyChangeRequest {} pub struct PerceptionStartFaceAuthenticationHandler(pub ::windows::core::IUnknown); #[cfg(feature = "deprecated")] impl PerceptionStartFaceAuthenticationHandler { - pub fn new) -> ::windows::core::Result + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = PerceptionStartFaceAuthenticationHandlerBox:: { vtable: &PerceptionStartFaceAuthenticationHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1769,13 +1769,13 @@ impl PerceptionStartFaceAuthenticationHandler { } #[cfg(feature = "deprecated")] #[repr(C)] -struct PerceptionStartFaceAuthenticationHandlerBox) -> ::windows::core::Result + 'static> { +struct PerceptionStartFaceAuthenticationHandlerBox) -> ::windows::core::Result + ::core::marker::Send + 'static> { vtable: *const PerceptionStartFaceAuthenticationHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "deprecated")] -impl) -> ::windows::core::Result + 'static> PerceptionStartFaceAuthenticationHandlerBox { +impl) -> ::windows::core::Result + ::core::marker::Send + 'static> PerceptionStartFaceAuthenticationHandlerBox { const VTABLE: PerceptionStartFaceAuthenticationHandler_Vtbl = PerceptionStartFaceAuthenticationHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1856,7 +1856,7 @@ pub struct PerceptionStartFaceAuthenticationHandler_Vtbl { pub struct PerceptionStopFaceAuthenticationHandler(pub ::windows::core::IUnknown); #[cfg(feature = "deprecated")] impl PerceptionStopFaceAuthenticationHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = PerceptionStopFaceAuthenticationHandlerBox:: { vtable: &PerceptionStopFaceAuthenticationHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1869,13 +1869,13 @@ impl PerceptionStopFaceAuthenticationHandler { } #[cfg(feature = "deprecated")] #[repr(C)] -struct PerceptionStopFaceAuthenticationHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct PerceptionStopFaceAuthenticationHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const PerceptionStopFaceAuthenticationHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "deprecated")] -impl) -> ::windows::core::Result<()> + 'static> PerceptionStopFaceAuthenticationHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> PerceptionStopFaceAuthenticationHandlerBox { const VTABLE: PerceptionStopFaceAuthenticationHandler_Vtbl = PerceptionStopFaceAuthenticationHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs b/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs index 4b7510f1d2..716d6f3e2c 100644 --- a/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs @@ -5100,7 +5100,7 @@ unsafe impl ::core::marker::Sync for SmartCardPinResetDeferral {} #[repr(transparent)] pub struct SmartCardPinResetHandler(pub ::windows::core::IUnknown); impl SmartCardPinResetHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SmartCardPinResetHandlerBox:: { vtable: &SmartCardPinResetHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -5111,12 +5111,12 @@ impl SmartCardPinResetHandler { } } #[repr(C)] -struct SmartCardPinResetHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct SmartCardPinResetHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SmartCardPinResetHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> SmartCardPinResetHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SmartCardPinResetHandlerBox { const VTABLE: SmartCardPinResetHandler_Vtbl = SmartCardPinResetHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs index 463f9c6a0c..84cc37b511 100644 --- a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs @@ -4307,7 +4307,7 @@ impl ::windows::core::DefaultType for SmsDeviceStatus { pub struct SmsDeviceStatusChangedEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "deprecated")] impl SmsDeviceStatusChangedEventHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SmsDeviceStatusChangedEventHandlerBox:: { vtable: &SmsDeviceStatusChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -4320,13 +4320,13 @@ impl SmsDeviceStatusChangedEventHandler { } #[cfg(feature = "deprecated")] #[repr(C)] -struct SmsDeviceStatusChangedEventHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct SmsDeviceStatusChangedEventHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SmsDeviceStatusChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "deprecated")] -impl) -> ::windows::core::Result<()> + 'static> SmsDeviceStatusChangedEventHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SmsDeviceStatusChangedEventHandlerBox { const VTABLE: SmsDeviceStatusChangedEventHandler_Vtbl = SmsDeviceStatusChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -5047,7 +5047,7 @@ impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &SmsM pub struct SmsMessageReceivedEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "deprecated")] impl SmsMessageReceivedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SmsMessageReceivedEventHandlerBox:: { vtable: &SmsMessageReceivedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -5060,13 +5060,13 @@ impl SmsMessageReceivedEventHandler { } #[cfg(feature = "deprecated")] #[repr(C)] -struct SmsMessageReceivedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct SmsMessageReceivedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SmsMessageReceivedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "deprecated")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> SmsMessageReceivedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SmsMessageReceivedEventHandlerBox { const VTABLE: SmsMessageReceivedEventHandler_Vtbl = SmsMessageReceivedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs b/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs index 91ee516107..2c4ba81a35 100644 --- a/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs @@ -1985,7 +1985,7 @@ where K: ::windows::core::RuntimeType + 'static, V: ::windows::core::RuntimeType + 'static; impl MapChangedEventHandler { - pub fn new>, &::core::option::Option>) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new>, &::core::option::Option>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MapChangedEventHandlerBox:: { vtable: &MapChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1996,7 +1996,7 @@ impl>, &::core::option::Option>) -> ::windows::core::Result<()> + 'static> +struct MapChangedEventHandlerBox>, &::core::option::Option>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> where K: ::windows::core::RuntimeType + 'static, V: ::windows::core::RuntimeType + 'static, @@ -2005,7 +2005,7 @@ where invoke: F, count: ::windows::core::RefCount, } -impl>, &::core::option::Option>) -> ::windows::core::Result<()> + 'static> MapChangedEventHandlerBox { +impl>, &::core::option::Option>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> MapChangedEventHandlerBox { const VTABLE: MapChangedEventHandler_Vtbl = MapChangedEventHandler_Vtbl:: { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke, @@ -2823,7 +2823,7 @@ pub struct VectorChangedEventHandler(pub ::windows::core::IUnknown, ::core::m where T: ::windows::core::RuntimeType + 'static; impl VectorChangedEventHandler { - pub fn new>, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new>, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = VectorChangedEventHandlerBox:: { vtable: &VectorChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -2834,7 +2834,7 @@ impl VectorChangedEventHandler { } } #[repr(C)] -struct VectorChangedEventHandlerBox>, &::core::option::Option) -> ::windows::core::Result<()> + 'static> +struct VectorChangedEventHandlerBox>, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> where T: ::windows::core::RuntimeType + 'static, { @@ -2842,7 +2842,7 @@ where invoke: F, count: ::windows::core::RefCount, } -impl>, &::core::option::Option) -> ::windows::core::Result<()> + 'static> VectorChangedEventHandlerBox { +impl>, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> VectorChangedEventHandlerBox { const VTABLE: VectorChangedEventHandler_Vtbl = VectorChangedEventHandler_Vtbl:: { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke, diff --git a/crates/libs/windows/src/Windows/Foundation/mod.rs b/crates/libs/windows/src/Windows/Foundation/mod.rs index 15d1fa7709..dd27981891 100644 --- a/crates/libs/windows/src/Windows/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/mod.rs @@ -11,7 +11,7 @@ pub mod Numerics; #[repr(transparent)] pub struct AsyncActionCompletedHandler(pub ::windows::core::IUnknown); impl AsyncActionCompletedHandler { - pub fn new, AsyncStatus) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = AsyncActionCompletedHandlerBox:: { vtable: &AsyncActionCompletedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -22,12 +22,12 @@ impl AsyncActionCompletedHandler { } } #[repr(C)] -struct AsyncActionCompletedHandlerBox, AsyncStatus) -> ::windows::core::Result<()> + 'static> { +struct AsyncActionCompletedHandlerBox, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const AsyncActionCompletedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, AsyncStatus) -> ::windows::core::Result<()> + 'static> AsyncActionCompletedHandlerBox { +impl, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> AsyncActionCompletedHandlerBox { const VTABLE: AsyncActionCompletedHandler_Vtbl = AsyncActionCompletedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -91,7 +91,7 @@ pub struct AsyncActionProgressHandler(pub ::windows::core::IUnknown, where TProgress: ::windows::core::RuntimeType + 'static; impl AsyncActionProgressHandler { - pub fn new>, &::DefaultType) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new>, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = AsyncActionProgressHandlerBox:: { vtable: &AsyncActionProgressHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -102,7 +102,7 @@ impl AsyncActionProgressHandl } } #[repr(C)] -struct AsyncActionProgressHandlerBox>, &::DefaultType) -> ::windows::core::Result<()> + 'static> +struct AsyncActionProgressHandlerBox>, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> where TProgress: ::windows::core::RuntimeType + 'static, { @@ -110,7 +110,7 @@ where invoke: F, count: ::windows::core::RefCount, } -impl>, &::DefaultType) -> ::windows::core::Result<()> + 'static> AsyncActionProgressHandlerBox { +impl>, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> AsyncActionProgressHandlerBox { const VTABLE: AsyncActionProgressHandler_Vtbl = AsyncActionProgressHandler_Vtbl:: { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke, @@ -182,7 +182,7 @@ pub struct AsyncActionWithProgressCompletedHandler(pub ::windows::cor where TProgress: ::windows::core::RuntimeType + 'static; impl AsyncActionWithProgressCompletedHandler { - pub fn new>, AsyncStatus) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new>, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = AsyncActionWithProgressCompletedHandlerBox:: { vtable: &AsyncActionWithProgressCompletedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -193,7 +193,7 @@ impl AsyncActionWithProgressC } } #[repr(C)] -struct AsyncActionWithProgressCompletedHandlerBox>, AsyncStatus) -> ::windows::core::Result<()> + 'static> +struct AsyncActionWithProgressCompletedHandlerBox>, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> where TProgress: ::windows::core::RuntimeType + 'static, { @@ -201,7 +201,7 @@ where invoke: F, count: ::windows::core::RefCount, } -impl>, AsyncStatus) -> ::windows::core::Result<()> + 'static> AsyncActionWithProgressCompletedHandlerBox { +impl>, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> AsyncActionWithProgressCompletedHandlerBox { const VTABLE: AsyncActionWithProgressCompletedHandler_Vtbl = AsyncActionWithProgressCompletedHandler_Vtbl:: { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke, @@ -273,7 +273,7 @@ pub struct AsyncOperationCompletedHandler(pub ::windows::core::IUnknown where TResult: ::windows::core::RuntimeType + 'static; impl AsyncOperationCompletedHandler { - pub fn new>, AsyncStatus) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new>, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = AsyncOperationCompletedHandlerBox:: { vtable: &AsyncOperationCompletedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -284,7 +284,7 @@ impl AsyncOperationCompletedHan } } #[repr(C)] -struct AsyncOperationCompletedHandlerBox>, AsyncStatus) -> ::windows::core::Result<()> + 'static> +struct AsyncOperationCompletedHandlerBox>, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> where TResult: ::windows::core::RuntimeType + 'static, { @@ -292,7 +292,7 @@ where invoke: F, count: ::windows::core::RefCount, } -impl>, AsyncStatus) -> ::windows::core::Result<()> + 'static> AsyncOperationCompletedHandlerBox { +impl>, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> AsyncOperationCompletedHandlerBox { const VTABLE: AsyncOperationCompletedHandler_Vtbl = AsyncOperationCompletedHandler_Vtbl:: { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke, @@ -365,7 +365,7 @@ where TResult: ::windows::core::RuntimeType + 'static, TProgress: ::windows::core::RuntimeType + 'static; impl AsyncOperationProgressHandler { - pub fn new>, &::DefaultType) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new>, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = AsyncOperationProgressHandlerBox:: { vtable: &AsyncOperationProgressHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -376,7 +376,7 @@ impl>, &::DefaultType) -> ::windows::core::Result<()> + 'static> +struct AsyncOperationProgressHandlerBox>, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> where TResult: ::windows::core::RuntimeType + 'static, TProgress: ::windows::core::RuntimeType + 'static, @@ -385,7 +385,7 @@ where invoke: F, count: ::windows::core::RefCount, } -impl>, &::DefaultType) -> ::windows::core::Result<()> + 'static> AsyncOperationProgressHandlerBox { +impl>, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> AsyncOperationProgressHandlerBox { const VTABLE: AsyncOperationProgressHandler_Vtbl = AsyncOperationProgressHandler_Vtbl:: { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke, @@ -461,7 +461,7 @@ where TResult: ::windows::core::RuntimeType + 'static, TProgress: ::windows::core::RuntimeType + 'static; impl AsyncOperationWithProgressCompletedHandler { - pub fn new>, AsyncStatus) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new>, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = AsyncOperationWithProgressCompletedHandlerBox:: { vtable: &AsyncOperationWithProgressCompletedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -472,7 +472,7 @@ impl>, AsyncStatus) -> ::windows::core::Result<()> + 'static> +struct AsyncOperationWithProgressCompletedHandlerBox>, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> where TResult: ::windows::core::RuntimeType + 'static, TProgress: ::windows::core::RuntimeType + 'static, @@ -481,7 +481,7 @@ where invoke: F, count: ::windows::core::RefCount, } -impl>, AsyncStatus) -> ::windows::core::Result<()> + 'static> AsyncOperationWithProgressCompletedHandlerBox { +impl>, AsyncStatus) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> AsyncOperationWithProgressCompletedHandlerBox { const VTABLE: AsyncOperationWithProgressCompletedHandler_Vtbl = AsyncOperationWithProgressCompletedHandler_Vtbl:: { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke, @@ -742,7 +742,7 @@ unsafe impl ::core::marker::Sync for Deferral {} #[repr(transparent)] pub struct DeferralCompletedHandler(pub ::windows::core::IUnknown); impl DeferralCompletedHandler { - pub fn new ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DeferralCompletedHandlerBox:: { vtable: &DeferralCompletedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -753,12 +753,12 @@ impl DeferralCompletedHandler { } } #[repr(C)] -struct DeferralCompletedHandlerBox ::windows::core::Result<()> + 'static> { +struct DeferralCompletedHandlerBox ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DeferralCompletedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl ::windows::core::Result<()> + 'static> DeferralCompletedHandlerBox { +impl ::windows::core::Result<()> + ::core::marker::Send + 'static> DeferralCompletedHandlerBox { const VTABLE: DeferralCompletedHandler_Vtbl = DeferralCompletedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -822,7 +822,7 @@ pub struct EventHandler(pub ::windows::core::IUnknown, ::core::marker::Phanto where T: ::windows::core::RuntimeType + 'static; impl EventHandler { - pub fn new, &::DefaultType) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = EventHandlerBox:: { vtable: &EventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -833,7 +833,7 @@ impl EventHandler { } } #[repr(C)] -struct EventHandlerBox, &::DefaultType) -> ::windows::core::Result<()> + 'static> +struct EventHandlerBox, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> where T: ::windows::core::RuntimeType + 'static, { @@ -841,7 +841,7 @@ where invoke: F, count: ::windows::core::RefCount, } -impl, &::DefaultType) -> ::windows::core::Result<()> + 'static> EventHandlerBox { +impl, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> EventHandlerBox { const VTABLE: EventHandler_Vtbl = EventHandler_Vtbl:: { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke, @@ -4413,7 +4413,7 @@ where TSender: ::windows::core::RuntimeType + 'static, TResult: ::windows::core::RuntimeType + 'static; impl TypedEventHandler { - pub fn new::DefaultType, &::DefaultType) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new::DefaultType, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = TypedEventHandlerBox:: { vtable: &TypedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -4424,7 +4424,7 @@ impl::DefaultType, &::DefaultType) -> ::windows::core::Result<()> + 'static> +struct TypedEventHandlerBox::DefaultType, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> where TSender: ::windows::core::RuntimeType + 'static, TResult: ::windows::core::RuntimeType + 'static, @@ -4433,7 +4433,7 @@ where invoke: F, count: ::windows::core::RefCount, } -impl::DefaultType, &::DefaultType) -> ::windows::core::Result<()> + 'static> TypedEventHandlerBox { +impl::DefaultType, &::DefaultType) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> TypedEventHandlerBox { const VTABLE: TypedEventHandler_Vtbl = TypedEventHandler_Vtbl:: { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke, diff --git a/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs b/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs index 7851518dcb..f790dbbe5b 100644 --- a/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs @@ -125,7 +125,7 @@ impl ::windows::core::DefaultType for GameListCategory { #[repr(transparent)] pub struct GameListChangedEventHandler(pub ::windows::core::IUnknown); impl GameListChangedEventHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = GameListChangedEventHandlerBox:: { vtable: &GameListChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -136,12 +136,12 @@ impl GameListChangedEventHandler { } } #[repr(C)] -struct GameListChangedEventHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct GameListChangedEventHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const GameListChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> GameListChangedEventHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> GameListChangedEventHandlerBox { const VTABLE: GameListChangedEventHandler_Vtbl = GameListChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -445,7 +445,7 @@ impl ::windows::core::DefaultType for GameListEntryLaunchableState { #[repr(transparent)] pub struct GameListRemovedEventHandler(pub ::windows::core::IUnknown); impl GameListRemovedEventHandler { - pub fn new ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = GameListRemovedEventHandlerBox:: { vtable: &GameListRemovedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -456,12 +456,12 @@ impl GameListRemovedEventHandler { } } #[repr(C)] -struct GameListRemovedEventHandlerBox ::windows::core::Result<()> + 'static> { +struct GameListRemovedEventHandlerBox ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const GameListRemovedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl ::windows::core::Result<()> + 'static> GameListRemovedEventHandlerBox { +impl ::windows::core::Result<()> + ::core::marker::Send + 'static> GameListRemovedEventHandlerBox { const VTABLE: GameListRemovedEventHandler_Vtbl = GameListRemovedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs index fcf4382849..2d801b3c28 100644 --- a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs @@ -1638,7 +1638,7 @@ impl ::windows::core::RuntimeName for DisplayProperties { pub struct DisplayPropertiesEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "deprecated")] impl DisplayPropertiesEventHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DisplayPropertiesEventHandlerBox:: { vtable: &DisplayPropertiesEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1651,13 +1651,13 @@ impl DisplayPropertiesEventHandler { } #[cfg(feature = "deprecated")] #[repr(C)] -struct DisplayPropertiesEventHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct DisplayPropertiesEventHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DisplayPropertiesEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "deprecated")] -impl) -> ::windows::core::Result<()> + 'static> DisplayPropertiesEventHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DisplayPropertiesEventHandlerBox { const VTABLE: DisplayPropertiesEventHandler_Vtbl = DisplayPropertiesEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs index e5dd60e942..9d32d7163e 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs @@ -3240,7 +3240,7 @@ unsafe impl ::core::marker::Sync for PrintTaskSourceRequestedDeferral {} #[repr(transparent)] pub struct PrintTaskSourceRequestedHandler(pub ::windows::core::IUnknown); impl PrintTaskSourceRequestedHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = PrintTaskSourceRequestedHandlerBox:: { vtable: &PrintTaskSourceRequestedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3251,12 +3251,12 @@ impl PrintTaskSourceRequestedHandler { } } #[repr(C)] -struct PrintTaskSourceRequestedHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct PrintTaskSourceRequestedHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const PrintTaskSourceRequestedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> PrintTaskSourceRequestedHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> PrintTaskSourceRequestedHandlerBox { const VTABLE: PrintTaskSourceRequestedHandler_Vtbl = PrintTaskSourceRequestedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs index 1dbe91bb3a..1840d0e869 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs @@ -1533,7 +1533,7 @@ unsafe impl ::core::marker::Sync for Print3DTaskSourceRequestedArgs {} #[repr(transparent)] pub struct Print3DTaskSourceRequestedHandler(pub ::windows::core::IUnknown); impl Print3DTaskSourceRequestedHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = Print3DTaskSourceRequestedHandlerBox:: { vtable: &Print3DTaskSourceRequestedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1544,12 +1544,12 @@ impl Print3DTaskSourceRequestedHandler { } } #[repr(C)] -struct Print3DTaskSourceRequestedHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct Print3DTaskSourceRequestedHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const Print3DTaskSourceRequestedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> Print3DTaskSourceRequestedHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> Print3DTaskSourceRequestedHandlerBox { const VTABLE: Print3DTaskSourceRequestedHandler_Vtbl = Print3DTaskSourceRequestedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Media/Capture/mod.rs b/crates/libs/windows/src/Windows/Media/Capture/mod.rs index add01d9096..def4bb7339 100644 --- a/crates/libs/windows/src/Windows/Media/Capture/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Capture/mod.rs @@ -12330,7 +12330,7 @@ impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &Medi #[repr(transparent)] pub struct MediaCaptureFailedEventHandler(pub ::windows::core::IUnknown); impl MediaCaptureFailedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MediaCaptureFailedEventHandlerBox:: { vtable: &MediaCaptureFailedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -12341,12 +12341,12 @@ impl MediaCaptureFailedEventHandler { } } #[repr(C)] -struct MediaCaptureFailedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct MediaCaptureFailedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const MediaCaptureFailedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> MediaCaptureFailedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> MediaCaptureFailedEventHandlerBox { const VTABLE: MediaCaptureFailedEventHandler_Vtbl = MediaCaptureFailedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -14175,7 +14175,7 @@ impl ::windows::core::DefaultType for PowerlineFrequency { #[repr(transparent)] pub struct RecordLimitationExceededEventHandler(pub ::windows::core::IUnknown); impl RecordLimitationExceededEventHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RecordLimitationExceededEventHandlerBox:: { vtable: &RecordLimitationExceededEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -14186,12 +14186,12 @@ impl RecordLimitationExceededEventHandler { } } #[repr(C)] -struct RecordLimitationExceededEventHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct RecordLimitationExceededEventHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const RecordLimitationExceededEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> RecordLimitationExceededEventHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> RecordLimitationExceededEventHandlerBox { const VTABLE: RecordLimitationExceededEventHandler_Vtbl = RecordLimitationExceededEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Media/Devices/mod.rs b/crates/libs/windows/src/Windows/Media/Devices/mod.rs index be134d21cb..ae1cd86cc6 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/mod.rs @@ -993,7 +993,7 @@ unsafe impl ::core::marker::Sync for CallControl {} #[repr(transparent)] pub struct CallControlEventHandler(pub ::windows::core::IUnknown); impl CallControlEventHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = CallControlEventHandlerBox:: { vtable: &CallControlEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1004,12 +1004,12 @@ impl CallControlEventHandler { } } #[repr(C)] -struct CallControlEventHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct CallControlEventHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const CallControlEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> CallControlEventHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> CallControlEventHandlerBox { const VTABLE: CallControlEventHandler_Vtbl = CallControlEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1838,7 +1838,7 @@ unsafe impl ::core::marker::Sync for DialRequestedEventArgs {} #[repr(transparent)] pub struct DialRequestedEventHandler(pub ::windows::core::IUnknown); impl DialRequestedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DialRequestedEventHandlerBox:: { vtable: &DialRequestedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1849,12 +1849,12 @@ impl DialRequestedEventHandler { } } #[repr(C)] -struct DialRequestedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct DialRequestedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DialRequestedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DialRequestedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DialRequestedEventHandlerBox { const VTABLE: DialRequestedEventHandler_Vtbl = DialRequestedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -5448,7 +5448,7 @@ unsafe impl ::core::marker::Sync for KeypadPressedEventArgs {} #[repr(transparent)] pub struct KeypadPressedEventHandler(pub ::windows::core::IUnknown); impl KeypadPressedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = KeypadPressedEventHandlerBox:: { vtable: &KeypadPressedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -5459,12 +5459,12 @@ impl KeypadPressedEventHandler { } } #[repr(C)] -struct KeypadPressedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct KeypadPressedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const KeypadPressedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> KeypadPressedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> KeypadPressedEventHandlerBox { const VTABLE: KeypadPressedEventHandler_Vtbl = KeypadPressedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -6802,7 +6802,7 @@ unsafe impl ::core::marker::Sync for RedialRequestedEventArgs {} #[repr(transparent)] pub struct RedialRequestedEventHandler(pub ::windows::core::IUnknown); impl RedialRequestedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RedialRequestedEventHandlerBox:: { vtable: &RedialRequestedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -6813,12 +6813,12 @@ impl RedialRequestedEventHandler { } } #[repr(C)] -struct RedialRequestedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct RedialRequestedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const RedialRequestedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> RedialRequestedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> RedialRequestedEventHandlerBox { const VTABLE: RedialRequestedEventHandler_Vtbl = RedialRequestedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Media/Protection/mod.rs b/crates/libs/windows/src/Windows/Media/Protection/mod.rs index 568a31097a..5dc759d522 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/mod.rs @@ -94,7 +94,7 @@ unsafe impl ::core::marker::Sync for ComponentLoadFailedEventArgs {} #[repr(transparent)] pub struct ComponentLoadFailedEventHandler(pub ::windows::core::IUnknown); impl ComponentLoadFailedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ComponentLoadFailedEventHandlerBox:: { vtable: &ComponentLoadFailedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -105,12 +105,12 @@ impl ComponentLoadFailedEventHandler { } } #[repr(C)] -struct ComponentLoadFailedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ComponentLoadFailedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ComponentLoadFailedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ComponentLoadFailedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ComponentLoadFailedEventHandlerBox { const VTABLE: ComponentLoadFailedEventHandler_Vtbl = ComponentLoadFailedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1191,7 +1191,7 @@ impl ::windows::core::DefaultType for ProtectionCapabilityResult { #[repr(transparent)] pub struct RebootNeededEventHandler(pub ::windows::core::IUnknown); impl RebootNeededEventHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RebootNeededEventHandlerBox:: { vtable: &RebootNeededEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1202,12 +1202,12 @@ impl RebootNeededEventHandler { } } #[repr(C)] -struct RebootNeededEventHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct RebootNeededEventHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const RebootNeededEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> RebootNeededEventHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> RebootNeededEventHandlerBox { const VTABLE: RebootNeededEventHandler_Vtbl = RebootNeededEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1672,7 +1672,7 @@ unsafe impl ::core::marker::Sync for ServiceRequestedEventArgs {} #[repr(transparent)] pub struct ServiceRequestedEventHandler(pub ::windows::core::IUnknown); impl ServiceRequestedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ServiceRequestedEventHandlerBox:: { vtable: &ServiceRequestedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1683,12 +1683,12 @@ impl ServiceRequestedEventHandler { } } #[repr(C)] -struct ServiceRequestedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ServiceRequestedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ServiceRequestedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ServiceRequestedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ServiceRequestedEventHandlerBox { const VTABLE: ServiceRequestedEventHandler_Vtbl = ServiceRequestedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs index 0cf4671d6c..d970962c03 100644 --- a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs @@ -3253,7 +3253,7 @@ unsafe impl ::core::marker::Sync for NetworkStateChangeEventDetails {} #[repr(transparent)] pub struct NetworkStatusChangedEventHandler(pub ::windows::core::IUnknown); impl NetworkStatusChangedEventHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = NetworkStatusChangedEventHandlerBox:: { vtable: &NetworkStatusChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3264,12 +3264,12 @@ impl NetworkStatusChangedEventHandler { } } #[repr(C)] -struct NetworkStatusChangedEventHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct NetworkStatusChangedEventHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const NetworkStatusChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> NetworkStatusChangedEventHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> NetworkStatusChangedEventHandlerBox { const VTABLE: NetworkStatusChangedEventHandler_Vtbl = NetworkStatusChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs b/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs index a90728af74..21261bd175 100644 --- a/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs @@ -84,7 +84,7 @@ unsafe impl ::core::marker::Sync for ConnectionRequestedEventArgs {} #[repr(transparent)] pub struct DeviceArrivedEventHandler(pub ::windows::core::IUnknown); impl DeviceArrivedEventHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DeviceArrivedEventHandlerBox:: { vtable: &DeviceArrivedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -95,12 +95,12 @@ impl DeviceArrivedEventHandler { } } #[repr(C)] -struct DeviceArrivedEventHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct DeviceArrivedEventHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DeviceArrivedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> DeviceArrivedEventHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DeviceArrivedEventHandlerBox { const VTABLE: DeviceArrivedEventHandler_Vtbl = DeviceArrivedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -162,7 +162,7 @@ pub struct DeviceArrivedEventHandler_Vtbl { #[repr(transparent)] pub struct DeviceDepartedEventHandler(pub ::windows::core::IUnknown); impl DeviceDepartedEventHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DeviceDepartedEventHandlerBox:: { vtable: &DeviceDepartedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -173,12 +173,12 @@ impl DeviceDepartedEventHandler { } } #[repr(C)] -struct DeviceDepartedEventHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct DeviceDepartedEventHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DeviceDepartedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> DeviceDepartedEventHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DeviceDepartedEventHandlerBox { const VTABLE: DeviceDepartedEventHandler_Vtbl = DeviceDepartedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -531,7 +531,7 @@ pub struct ITriggeredConnectionStateChangedEventArgs_Vtbl { #[repr(transparent)] pub struct MessageReceivedHandler(pub ::windows::core::IUnknown); impl MessageReceivedHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MessageReceivedHandlerBox:: { vtable: &MessageReceivedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -542,12 +542,12 @@ impl MessageReceivedHandler { } } #[repr(C)] -struct MessageReceivedHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct MessageReceivedHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const MessageReceivedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> MessageReceivedHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> MessageReceivedHandlerBox { const VTABLE: MessageReceivedHandler_Vtbl = MessageReceivedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -609,7 +609,7 @@ pub struct MessageReceivedHandler_Vtbl { #[repr(transparent)] pub struct MessageTransmittedHandler(pub ::windows::core::IUnknown); impl MessageTransmittedHandler { - pub fn new, i64) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, i64) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MessageTransmittedHandlerBox:: { vtable: &MessageTransmittedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -620,12 +620,12 @@ impl MessageTransmittedHandler { } } #[repr(C)] -struct MessageTransmittedHandlerBox, i64) -> ::windows::core::Result<()> + 'static> { +struct MessageTransmittedHandlerBox, i64) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const MessageTransmittedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, i64) -> ::windows::core::Result<()> + 'static> MessageTransmittedHandlerBox { +impl, i64) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> MessageTransmittedHandlerBox { const VTABLE: MessageTransmittedHandler_Vtbl = MessageTransmittedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs index 01bbf07949..bf5786e26b 100644 --- a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs @@ -5,7 +5,7 @@ pub struct HostMessageReceivedCallback(pub ::windows::core::IUnknown); #[cfg(feature = "Foundation_Collections")] impl HostMessageReceivedCallback { - pub fn new>) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = HostMessageReceivedCallbackBox:: { vtable: &HostMessageReceivedCallbackBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -18,13 +18,13 @@ impl HostMessageReceivedCallback { } #[cfg(feature = "Foundation_Collections")] #[repr(C)] -struct HostMessageReceivedCallbackBox>) -> ::windows::core::Result<()> + 'static> { +struct HostMessageReceivedCallbackBox>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const HostMessageReceivedCallback_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "Foundation_Collections")] -impl>) -> ::windows::core::Result<()> + 'static> HostMessageReceivedCallbackBox { +impl>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> HostMessageReceivedCallbackBox { const VTABLE: HostMessageReceivedCallback_Vtbl = HostMessageReceivedCallback_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -3076,7 +3076,7 @@ impl ::windows::core::RuntimeName for IsolatedWindowsHostMessenger { pub struct MessageReceivedCallback(pub ::windows::core::IUnknown); #[cfg(feature = "Foundation_Collections")] impl MessageReceivedCallback { - pub fn new>) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MessageReceivedCallbackBox:: { vtable: &MessageReceivedCallbackBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3089,13 +3089,13 @@ impl MessageReceivedCallback { } #[cfg(feature = "Foundation_Collections")] #[repr(C)] -struct MessageReceivedCallbackBox>) -> ::windows::core::Result<()> + 'static> { +struct MessageReceivedCallbackBox>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const MessageReceivedCallback_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "Foundation_Collections")] -impl>) -> ::windows::core::Result<()> + 'static> MessageReceivedCallbackBox { +impl>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> MessageReceivedCallbackBox { const VTABLE: MessageReceivedCallback_Vtbl = MessageReceivedCallback_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/Storage/mod.rs b/crates/libs/windows/src/Windows/Storage/mod.rs index 2befdf48c0..928cf0db98 100644 --- a/crates/libs/windows/src/Windows/Storage/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/mod.rs @@ -1264,7 +1264,7 @@ impl ::windows::core::DefaultType for ApplicationDataLocality { #[repr(transparent)] pub struct ApplicationDataSetVersionHandler(pub ::windows::core::IUnknown); impl ApplicationDataSetVersionHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ApplicationDataSetVersionHandlerBox:: { vtable: &ApplicationDataSetVersionHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1275,12 +1275,12 @@ impl ApplicationDataSetVersionHandler { } } #[repr(C)] -struct ApplicationDataSetVersionHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct ApplicationDataSetVersionHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ApplicationDataSetVersionHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> ApplicationDataSetVersionHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ApplicationDataSetVersionHandlerBox { const VTABLE: ApplicationDataSetVersionHandler_Vtbl = ApplicationDataSetVersionHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -8119,7 +8119,7 @@ impl<'a> ::windows::core::IntoParam<'a, IStreamedFileDataRequest> for &StreamedF pub struct StreamedFileDataRequestedHandler(pub ::windows::core::IUnknown); #[cfg(feature = "Storage_Streams")] impl StreamedFileDataRequestedHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = StreamedFileDataRequestedHandlerBox:: { vtable: &StreamedFileDataRequestedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -8132,13 +8132,13 @@ impl StreamedFileDataRequestedHandler { } #[cfg(feature = "Storage_Streams")] #[repr(C)] -struct StreamedFileDataRequestedHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct StreamedFileDataRequestedHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const StreamedFileDataRequestedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "Storage_Streams")] -impl) -> ::windows::core::Result<()> + 'static> StreamedFileDataRequestedHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> StreamedFileDataRequestedHandlerBox { const VTABLE: StreamedFileDataRequestedHandler_Vtbl = StreamedFileDataRequestedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs b/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs index a8076d5ab0..980472b290 100644 --- a/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs +++ b/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs @@ -178,7 +178,7 @@ unsafe impl ::core::marker::Sync for RemoteTextConnection {} #[repr(transparent)] pub struct RemoteTextConnectionDataHandler(pub ::windows::core::IUnknown); impl RemoteTextConnectionDataHandler { - pub fn new::DefaultType]) -> ::windows::core::Result + 'static>(invoke: F) -> Self { + pub fn new::DefaultType]) -> ::windows::core::Result + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RemoteTextConnectionDataHandlerBox:: { vtable: &RemoteTextConnectionDataHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -192,12 +192,12 @@ impl RemoteTextConnectionDataHandler { } } #[repr(C)] -struct RemoteTextConnectionDataHandlerBox::DefaultType]) -> ::windows::core::Result + 'static> { +struct RemoteTextConnectionDataHandlerBox::DefaultType]) -> ::windows::core::Result + ::core::marker::Send + 'static> { vtable: *const RemoteTextConnectionDataHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl::DefaultType]) -> ::windows::core::Result + 'static> RemoteTextConnectionDataHandlerBox { +impl::DefaultType]) -> ::windows::core::Result + ::core::marker::Send + 'static> RemoteTextConnectionDataHandlerBox { const VTABLE: RemoteTextConnectionDataHandler_Vtbl = RemoteTextConnectionDataHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs b/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs index 65bfcada17..66a3659d4a 100644 --- a/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs +++ b/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs @@ -190,7 +190,7 @@ unsafe impl ::core::marker::Sync for PreallocatedWorkItem {} #[repr(transparent)] pub struct SignalHandler(pub ::windows::core::IUnknown); impl SignalHandler { - pub fn new, bool) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, bool) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SignalHandlerBox:: { vtable: &SignalHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -201,12 +201,12 @@ impl SignalHandler { } } #[repr(C)] -struct SignalHandlerBox, bool) -> ::windows::core::Result<()> + 'static> { +struct SignalHandlerBox, bool) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SignalHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, bool) -> ::windows::core::Result<()> + 'static> SignalHandlerBox { +impl, bool) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SignalHandlerBox { const VTABLE: SignalHandler_Vtbl = SignalHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/System/Threading/mod.rs b/crates/libs/windows/src/Windows/System/Threading/mod.rs index d18391f577..eeb62ca83f 100644 --- a/crates/libs/windows/src/Windows/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/System/Threading/mod.rs @@ -247,7 +247,7 @@ unsafe impl ::core::marker::Sync for ThreadPoolTimer {} #[repr(transparent)] pub struct TimerDestroyedHandler(pub ::windows::core::IUnknown); impl TimerDestroyedHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = TimerDestroyedHandlerBox:: { vtable: &TimerDestroyedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -258,12 +258,12 @@ impl TimerDestroyedHandler { } } #[repr(C)] -struct TimerDestroyedHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct TimerDestroyedHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const TimerDestroyedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> TimerDestroyedHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> TimerDestroyedHandlerBox { const VTABLE: TimerDestroyedHandler_Vtbl = TimerDestroyedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -325,7 +325,7 @@ pub struct TimerDestroyedHandler_Vtbl { #[repr(transparent)] pub struct TimerElapsedHandler(pub ::windows::core::IUnknown); impl TimerElapsedHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = TimerElapsedHandlerBox:: { vtable: &TimerElapsedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -336,12 +336,12 @@ impl TimerElapsedHandler { } } #[repr(C)] -struct TimerElapsedHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct TimerElapsedHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const TimerElapsedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> TimerElapsedHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> TimerElapsedHandlerBox { const VTABLE: TimerElapsedHandler_Vtbl = TimerElapsedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -405,7 +405,7 @@ pub struct TimerElapsedHandler_Vtbl { pub struct WorkItemHandler(pub ::windows::core::IUnknown); #[cfg(feature = "Foundation")] impl WorkItemHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WorkItemHandlerBox:: { vtable: &WorkItemHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -418,13 +418,13 @@ impl WorkItemHandler { } #[cfg(feature = "Foundation")] #[repr(C)] -struct WorkItemHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct WorkItemHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const WorkItemHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "Foundation")] -impl) -> ::windows::core::Result<()> + 'static> WorkItemHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> WorkItemHandlerBox { const VTABLE: WorkItemHandler_Vtbl = WorkItemHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/System/mod.rs b/crates/libs/windows/src/Windows/System/mod.rs index 63ed37e35d..9b5348e5f5 100644 --- a/crates/libs/windows/src/Windows/System/mod.rs +++ b/crates/libs/windows/src/Windows/System/mod.rs @@ -2488,7 +2488,7 @@ unsafe impl ::core::marker::Sync for DispatcherQueueController {} #[repr(transparent)] pub struct DispatcherQueueHandler(pub ::windows::core::IUnknown); impl DispatcherQueueHandler { - pub fn new ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DispatcherQueueHandlerBox:: { vtable: &DispatcherQueueHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -2499,12 +2499,12 @@ impl DispatcherQueueHandler { } } #[repr(C)] -struct DispatcherQueueHandlerBox ::windows::core::Result<()> + 'static> { +struct DispatcherQueueHandlerBox ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DispatcherQueueHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl ::windows::core::Result<()> + 'static> DispatcherQueueHandlerBox { +impl ::windows::core::Result<()> + ::core::marker::Send + 'static> DispatcherQueueHandlerBox { const VTABLE: DispatcherQueueHandler_Vtbl = DispatcherQueueHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs b/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs index 3b734f2e30..9768ebf367 100644 --- a/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs @@ -469,7 +469,7 @@ impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &Cred #[repr(transparent)] pub struct CredentialCommandCredentialDeletedHandler(pub ::windows::core::IUnknown); impl CredentialCommandCredentialDeletedHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = CredentialCommandCredentialDeletedHandlerBox:: { vtable: &CredentialCommandCredentialDeletedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -480,12 +480,12 @@ impl CredentialCommandCredentialDeletedHandler { } } #[repr(C)] -struct CredentialCommandCredentialDeletedHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct CredentialCommandCredentialDeletedHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const CredentialCommandCredentialDeletedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> CredentialCommandCredentialDeletedHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> CredentialCommandCredentialDeletedHandlerBox { const VTABLE: CredentialCommandCredentialDeletedHandler_Vtbl = CredentialCommandCredentialDeletedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1679,7 +1679,7 @@ impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &WebA #[repr(transparent)] pub struct WebAccountCommandInvokedHandler(pub ::windows::core::IUnknown); impl WebAccountCommandInvokedHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WebAccountCommandInvokedHandlerBox:: { vtable: &WebAccountCommandInvokedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1690,12 +1690,12 @@ impl WebAccountCommandInvokedHandler { } } #[repr(C)] -struct WebAccountCommandInvokedHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct WebAccountCommandInvokedHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const WebAccountCommandInvokedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> WebAccountCommandInvokedHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> WebAccountCommandInvokedHandlerBox { const VTABLE: WebAccountCommandInvokedHandler_Vtbl = WebAccountCommandInvokedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1937,7 +1937,7 @@ impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &WebA #[repr(transparent)] pub struct WebAccountProviderCommandInvokedHandler(pub ::windows::core::IUnknown); impl WebAccountProviderCommandInvokedHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WebAccountProviderCommandInvokedHandlerBox:: { vtable: &WebAccountProviderCommandInvokedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1948,12 +1948,12 @@ impl WebAccountProviderCommandInvokedHandler { } } #[repr(C)] -struct WebAccountProviderCommandInvokedHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct WebAccountProviderCommandInvokedHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const WebAccountProviderCommandInvokedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> WebAccountProviderCommandInvokedHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> WebAccountProviderCommandInvokedHandlerBox { const VTABLE: WebAccountProviderCommandInvokedHandler_Vtbl = WebAccountProviderCommandInvokedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Core/mod.rs index 573f0e235c..3561c000c8 100644 --- a/crates/libs/windows/src/Windows/UI/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Core/mod.rs @@ -3942,7 +3942,7 @@ unsafe impl ::core::marker::Sync for CoreWindowResizeManager {} #[repr(transparent)] pub struct DispatchedHandler(pub ::windows::core::IUnknown); impl DispatchedHandler { - pub fn new ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DispatchedHandlerBox:: { vtable: &DispatchedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3953,12 +3953,12 @@ impl DispatchedHandler { } } #[repr(C)] -struct DispatchedHandlerBox ::windows::core::Result<()> + 'static> { +struct DispatchedHandlerBox ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DispatchedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl ::windows::core::Result<()> + 'static> DispatchedHandlerBox { +impl ::windows::core::Result<()> + ::core::marker::Send + 'static> DispatchedHandlerBox { const VTABLE: DispatchedHandler_Vtbl = DispatchedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -6558,7 +6558,7 @@ pub struct IWindowSizeChangedEventArgs_Vtbl { #[repr(transparent)] pub struct IdleDispatchedHandler(pub ::windows::core::IUnknown); impl IdleDispatchedHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = IdleDispatchedHandlerBox:: { vtable: &IdleDispatchedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -6569,12 +6569,12 @@ impl IdleDispatchedHandler { } } #[repr(C)] -struct IdleDispatchedHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct IdleDispatchedHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const IdleDispatchedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> IdleDispatchedHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> IdleDispatchedHandlerBox { const VTABLE: IdleDispatchedHandler_Vtbl = IdleDispatchedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Popups/mod.rs b/crates/libs/windows/src/Windows/UI/Popups/mod.rs index 9287136c19..814eb34b13 100644 --- a/crates/libs/windows/src/Windows/UI/Popups/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Popups/mod.rs @@ -759,7 +759,7 @@ unsafe impl ::core::marker::Sync for UICommand {} #[repr(transparent)] pub struct UICommandInvokedHandler(pub ::windows::core::IUnknown); impl UICommandInvokedHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = UICommandInvokedHandlerBox:: { vtable: &UICommandInvokedHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -770,12 +770,12 @@ impl UICommandInvokedHandler { } } #[repr(C)] -struct UICommandInvokedHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct UICommandInvokedHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const UICommandInvokedHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> UICommandInvokedHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> UICommandInvokedHandlerBox { const VTABLE: UICommandInvokedHandler_Vtbl = UICommandInvokedHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs b/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs index 815e330f9d..b01fbede34 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs @@ -364,7 +364,7 @@ pub struct IWebUICommandBarSymbolIconFactory_Vtbl { #[repr(transparent)] pub struct MenuClosedEventHandler(pub ::windows::core::IUnknown); impl MenuClosedEventHandler { - pub fn new ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MenuClosedEventHandlerBox:: { vtable: &MenuClosedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -375,12 +375,12 @@ impl MenuClosedEventHandler { } } #[repr(C)] -struct MenuClosedEventHandlerBox ::windows::core::Result<()> + 'static> { +struct MenuClosedEventHandlerBox ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const MenuClosedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl ::windows::core::Result<()> + 'static> MenuClosedEventHandlerBox { +impl ::windows::core::Result<()> + ::core::marker::Send + 'static> MenuClosedEventHandlerBox { const VTABLE: MenuClosedEventHandler_Vtbl = MenuClosedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -442,7 +442,7 @@ pub struct MenuClosedEventHandler_Vtbl { #[repr(transparent)] pub struct MenuOpenedEventHandler(pub ::windows::core::IUnknown); impl MenuOpenedEventHandler { - pub fn new ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MenuOpenedEventHandlerBox:: { vtable: &MenuOpenedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -453,12 +453,12 @@ impl MenuOpenedEventHandler { } } #[repr(C)] -struct MenuOpenedEventHandlerBox ::windows::core::Result<()> + 'static> { +struct MenuOpenedEventHandlerBox ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const MenuOpenedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl ::windows::core::Result<()> + 'static> MenuOpenedEventHandlerBox { +impl ::windows::core::Result<()> + ::core::marker::Send + 'static> MenuOpenedEventHandlerBox { const VTABLE: MenuOpenedEventHandler_Vtbl = MenuOpenedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -520,7 +520,7 @@ pub struct MenuOpenedEventHandler_Vtbl { #[repr(transparent)] pub struct SizeChangedEventHandler(pub ::windows::core::IUnknown); impl SizeChangedEventHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SizeChangedEventHandlerBox:: { vtable: &SizeChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -531,12 +531,12 @@ impl SizeChangedEventHandler { } } #[repr(C)] -struct SizeChangedEventHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct SizeChangedEventHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SizeChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> SizeChangedEventHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SizeChangedEventHandlerBox { const VTABLE: SizeChangedEventHandler_Vtbl = SizeChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs index 9793d1ebd7..f42cad8acb 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs @@ -83,7 +83,7 @@ impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &Acti pub struct ActivatedEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] impl ActivatedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ActivatedEventHandlerBox:: { vtable: &ActivatedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -96,13 +96,13 @@ impl ActivatedEventHandler { } #[cfg(feature = "ApplicationModel_Activation")] #[repr(C)] -struct ActivatedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ActivatedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ActivatedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "ApplicationModel_Activation")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ActivatedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ActivatedEventHandlerBox { const VTABLE: ActivatedEventHandler_Vtbl = ActivatedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -382,7 +382,7 @@ unsafe impl ::core::marker::Sync for BackgroundActivatedEventArgs {} pub struct BackgroundActivatedEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] impl BackgroundActivatedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = BackgroundActivatedEventHandlerBox:: { vtable: &BackgroundActivatedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -395,13 +395,13 @@ impl BackgroundActivatedEventHandler { } #[cfg(feature = "ApplicationModel_Activation")] #[repr(C)] -struct BackgroundActivatedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct BackgroundActivatedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const BackgroundActivatedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "ApplicationModel_Activation")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> BackgroundActivatedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> BackgroundActivatedEventHandlerBox { const VTABLE: BackgroundActivatedEventHandler_Vtbl = BackgroundActivatedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -602,7 +602,7 @@ unsafe impl ::core::marker::Sync for EnteredBackgroundEventArgs {} pub struct EnteredBackgroundEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "ApplicationModel")] impl EnteredBackgroundEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = EnteredBackgroundEventHandlerBox:: { vtable: &EnteredBackgroundEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -615,13 +615,13 @@ impl EnteredBackgroundEventHandler { } #[cfg(feature = "ApplicationModel")] #[repr(C)] -struct EnteredBackgroundEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct EnteredBackgroundEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const EnteredBackgroundEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "ApplicationModel")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> EnteredBackgroundEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> EnteredBackgroundEventHandlerBox { const VTABLE: EnteredBackgroundEventHandler_Vtbl = EnteredBackgroundEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1614,7 +1614,7 @@ unsafe impl ::core::marker::Sync for LeavingBackgroundEventArgs {} pub struct LeavingBackgroundEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "ApplicationModel")] impl LeavingBackgroundEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = LeavingBackgroundEventHandlerBox:: { vtable: &LeavingBackgroundEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1627,13 +1627,13 @@ impl LeavingBackgroundEventHandler { } #[cfg(feature = "ApplicationModel")] #[repr(C)] -struct LeavingBackgroundEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct LeavingBackgroundEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const LeavingBackgroundEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "ApplicationModel")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> LeavingBackgroundEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> LeavingBackgroundEventHandlerBox { const VTABLE: LeavingBackgroundEventHandler_Vtbl = LeavingBackgroundEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1705,7 +1705,7 @@ pub struct LeavingBackgroundEventHandler_Vtbl { #[repr(transparent)] pub struct NavigatedEventHandler(pub ::windows::core::IUnknown); impl NavigatedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = NavigatedEventHandlerBox:: { vtable: &NavigatedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1716,12 +1716,12 @@ impl NavigatedEventHandler { } } #[repr(C)] -struct NavigatedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct NavigatedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const NavigatedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> NavigatedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> NavigatedEventHandlerBox { const VTABLE: NavigatedEventHandler_Vtbl = NavigatedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1923,7 +1923,7 @@ impl ::windows::core::DefaultType for PrintContent { #[repr(transparent)] pub struct ResumingEventHandler(pub ::windows::core::IUnknown); impl ResumingEventHandler { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ResumingEventHandlerBox:: { vtable: &ResumingEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1934,12 +1934,12 @@ impl ResumingEventHandler { } } #[repr(C)] -struct ResumingEventHandlerBox) -> ::windows::core::Result<()> + 'static> { +struct ResumingEventHandlerBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ResumingEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> ResumingEventHandlerBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ResumingEventHandlerBox { const VTABLE: ResumingEventHandler_Vtbl = ResumingEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -2246,7 +2246,7 @@ impl<'a> ::windows::core::IntoParam<'a, super::super::ApplicationModel::ISuspend pub struct SuspendingEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "ApplicationModel")] impl SuspendingEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SuspendingEventHandlerBox:: { vtable: &SuspendingEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -2259,13 +2259,13 @@ impl SuspendingEventHandler { } #[cfg(feature = "ApplicationModel")] #[repr(C)] -struct SuspendingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct SuspendingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SuspendingEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "ApplicationModel")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> SuspendingEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SuspendingEventHandlerBox { const VTABLE: SuspendingEventHandler_Vtbl = SuspendingEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Controls/Primitives/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Controls/Primitives/mod.rs index 9a7d21c8ed..b79126a02e 100644 --- a/crates/libs/windows/src/Windows/UI/Xaml/Controls/Primitives/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Xaml/Controls/Primitives/mod.rs @@ -3451,7 +3451,7 @@ unsafe impl ::core::marker::Sync for DragCompletedEventArgs {} #[repr(transparent)] pub struct DragCompletedEventHandler(pub ::windows::core::IUnknown); impl DragCompletedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DragCompletedEventHandlerBox:: { vtable: &DragCompletedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3462,12 +3462,12 @@ impl DragCompletedEventHandler { } } #[repr(C)] -struct DragCompletedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct DragCompletedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DragCompletedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DragCompletedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DragCompletedEventHandlerBox { const VTABLE: DragCompletedEventHandler_Vtbl = DragCompletedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -3658,7 +3658,7 @@ unsafe impl ::core::marker::Sync for DragDeltaEventArgs {} #[repr(transparent)] pub struct DragDeltaEventHandler(pub ::windows::core::IUnknown); impl DragDeltaEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DragDeltaEventHandlerBox:: { vtable: &DragDeltaEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3669,12 +3669,12 @@ impl DragDeltaEventHandler { } } #[repr(C)] -struct DragDeltaEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct DragDeltaEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DragDeltaEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DragDeltaEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DragDeltaEventHandlerBox { const VTABLE: DragDeltaEventHandler_Vtbl = DragDeltaEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -3865,7 +3865,7 @@ unsafe impl ::core::marker::Sync for DragStartedEventArgs {} #[repr(transparent)] pub struct DragStartedEventHandler(pub ::windows::core::IUnknown); impl DragStartedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DragStartedEventHandlerBox:: { vtable: &DragStartedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3876,12 +3876,12 @@ impl DragStartedEventHandler { } } #[repr(C)] -struct DragStartedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct DragStartedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DragStartedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DragStartedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DragStartedEventHandlerBox { const VTABLE: DragStartedEventHandler_Vtbl = DragStartedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -8916,7 +8916,7 @@ unsafe impl ::core::marker::Sync for ItemsChangedEventArgs {} #[repr(transparent)] pub struct ItemsChangedEventHandler(pub ::windows::core::IUnknown); impl ItemsChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ItemsChangedEventHandlerBox:: { vtable: &ItemsChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -8927,12 +8927,12 @@ impl ItemsChangedEventHandler { } } #[repr(C)] -struct ItemsChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ItemsChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ItemsChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ItemsChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ItemsChangedEventHandlerBox { const VTABLE: ItemsChangedEventHandler_Vtbl = ItemsChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -15213,7 +15213,7 @@ unsafe impl ::core::marker::Sync for RangeBaseValueChangedEventArgs {} #[repr(transparent)] pub struct RangeBaseValueChangedEventHandler(pub ::windows::core::IUnknown); impl RangeBaseValueChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RangeBaseValueChangedEventHandlerBox:: { vtable: &RangeBaseValueChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -15224,12 +15224,12 @@ impl RangeBaseValueChangedEventHandler { } } #[repr(C)] -struct RangeBaseValueChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct RangeBaseValueChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const RangeBaseValueChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> RangeBaseValueChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> RangeBaseValueChangedEventHandlerBox { const VTABLE: RangeBaseValueChangedEventHandler_Vtbl = RangeBaseValueChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -16016,7 +16016,7 @@ unsafe impl ::core::marker::Sync for ScrollEventArgs {} #[repr(transparent)] pub struct ScrollEventHandler(pub ::windows::core::IUnknown); impl ScrollEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ScrollEventHandlerBox:: { vtable: &ScrollEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -16027,12 +16027,12 @@ impl ScrollEventHandler { } } #[repr(C)] -struct ScrollEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ScrollEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ScrollEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ScrollEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ScrollEventHandlerBox { const VTABLE: ScrollEventHandler_Vtbl = ScrollEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Controls/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Controls/mod.rs index 3756ee1719..39225df004 100644 --- a/crates/libs/windows/src/Windows/UI/Xaml/Controls/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Xaml/Controls/mod.rs @@ -3259,7 +3259,7 @@ unsafe impl ::core::marker::Sync for BackClickEventArgs {} #[repr(transparent)] pub struct BackClickEventHandler(pub ::windows::core::IUnknown); impl BackClickEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = BackClickEventHandlerBox:: { vtable: &BackClickEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3270,12 +3270,12 @@ impl BackClickEventHandler { } } #[repr(C)] -struct BackClickEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct BackClickEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const BackClickEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> BackClickEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> BackClickEventHandlerBox { const VTABLE: BackClickEventHandler_Vtbl = BackClickEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -7516,7 +7516,7 @@ unsafe impl ::core::marker::Sync for CalendarViewDayItemChangingEventArgs {} #[repr(transparent)] pub struct CalendarViewDayItemChangingEventHandler(pub ::windows::core::IUnknown); impl CalendarViewDayItemChangingEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = CalendarViewDayItemChangingEventHandlerBox:: { vtable: &CalendarViewDayItemChangingEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -7527,12 +7527,12 @@ impl CalendarViewDayItemChangingEventHandler { } } #[repr(C)] -struct CalendarViewDayItemChangingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct CalendarViewDayItemChangingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const CalendarViewDayItemChangingEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> CalendarViewDayItemChangingEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> CalendarViewDayItemChangingEventHandlerBox { const VTABLE: CalendarViewDayItemChangingEventHandler_Vtbl = CalendarViewDayItemChangingEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -9075,7 +9075,7 @@ unsafe impl ::core::marker::Sync for CleanUpVirtualizedItemEventArgs {} #[repr(transparent)] pub struct CleanUpVirtualizedItemEventHandler(pub ::windows::core::IUnknown); impl CleanUpVirtualizedItemEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = CleanUpVirtualizedItemEventHandlerBox:: { vtable: &CleanUpVirtualizedItemEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -9086,12 +9086,12 @@ impl CleanUpVirtualizedItemEventHandler { } } #[repr(C)] -struct CleanUpVirtualizedItemEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct CleanUpVirtualizedItemEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const CleanUpVirtualizedItemEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> CleanUpVirtualizedItemEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> CleanUpVirtualizedItemEventHandlerBox { const VTABLE: CleanUpVirtualizedItemEventHandler_Vtbl = CleanUpVirtualizedItemEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -15307,7 +15307,7 @@ unsafe impl ::core::marker::Sync for ContextMenuEventArgs {} #[repr(transparent)] pub struct ContextMenuOpeningEventHandler(pub ::windows::core::IUnknown); impl ContextMenuOpeningEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ContextMenuOpeningEventHandlerBox:: { vtable: &ContextMenuOpeningEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -15318,12 +15318,12 @@ impl ContextMenuOpeningEventHandler { } } #[repr(C)] -struct ContextMenuOpeningEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ContextMenuOpeningEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ContextMenuOpeningEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ContextMenuOpeningEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ContextMenuOpeningEventHandlerBox { const VTABLE: ContextMenuOpeningEventHandler_Vtbl = ContextMenuOpeningEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -18624,7 +18624,7 @@ unsafe impl ::core::marker::Sync for DragItemsStartingEventArgs {} #[repr(transparent)] pub struct DragItemsStartingEventHandler(pub ::windows::core::IUnknown); impl DragItemsStartingEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DragItemsStartingEventHandlerBox:: { vtable: &DragItemsStartingEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -18635,12 +18635,12 @@ impl DragItemsStartingEventHandler { } } #[repr(C)] -struct DragItemsStartingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct DragItemsStartingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DragItemsStartingEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DragItemsStartingEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DragItemsStartingEventHandlerBox { const VTABLE: DragItemsStartingEventHandler_Vtbl = DragItemsStartingEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -25692,7 +25692,7 @@ unsafe impl ::core::marker::Sync for HubSectionHeaderClickEventArgs {} #[repr(transparent)] pub struct HubSectionHeaderClickEventHandler(pub ::windows::core::IUnknown); impl HubSectionHeaderClickEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = HubSectionHeaderClickEventHandlerBox:: { vtable: &HubSectionHeaderClickEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -25703,12 +25703,12 @@ impl HubSectionHeaderClickEventHandler { } } #[repr(C)] -struct HubSectionHeaderClickEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct HubSectionHeaderClickEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const HubSectionHeaderClickEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> HubSectionHeaderClickEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> HubSectionHeaderClickEventHandlerBox { const VTABLE: HubSectionHeaderClickEventHandler_Vtbl = HubSectionHeaderClickEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -51696,7 +51696,7 @@ unsafe impl ::core::marker::Sync for ItemClickEventArgs {} #[repr(transparent)] pub struct ItemClickEventHandler(pub ::windows::core::IUnknown); impl ItemClickEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ItemClickEventHandlerBox:: { vtable: &ItemClickEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -51707,12 +51707,12 @@ impl ItemClickEventHandler { } } #[repr(C)] -struct ItemClickEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ItemClickEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ItemClickEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ItemClickEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ItemClickEventHandlerBox { const VTABLE: ItemClickEventHandler_Vtbl = ItemClickEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -57609,7 +57609,7 @@ unsafe impl ::core::marker::Sync for ListViewItem {} #[repr(transparent)] pub struct ListViewItemToKeyHandler(pub ::windows::core::IUnknown); impl ListViewItemToKeyHandler { - pub fn new) -> ::windows::core::Result<::windows::core::HSTRING> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<::windows::core::HSTRING> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ListViewItemToKeyHandlerBox:: { vtable: &ListViewItemToKeyHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -57623,12 +57623,12 @@ impl ListViewItemToKeyHandler { } } #[repr(C)] -struct ListViewItemToKeyHandlerBox) -> ::windows::core::Result<::windows::core::HSTRING> + 'static> { +struct ListViewItemToKeyHandlerBox) -> ::windows::core::Result<::windows::core::HSTRING> + ::core::marker::Send + 'static> { vtable: *const ListViewItemToKeyHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<::windows::core::HSTRING> + 'static> ListViewItemToKeyHandlerBox { +impl) -> ::windows::core::Result<::windows::core::HSTRING> + ::core::marker::Send + 'static> ListViewItemToKeyHandlerBox { const VTABLE: ListViewItemToKeyHandler_Vtbl = ListViewItemToKeyHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -57699,7 +57699,7 @@ pub struct ListViewItemToKeyHandler_Vtbl { pub struct ListViewKeyToItemHandler(pub ::windows::core::IUnknown); #[cfg(feature = "Foundation")] impl ListViewKeyToItemHandler { - pub fn new ::windows::core::Result> + 'static>(invoke: F) -> Self { + pub fn new ::windows::core::Result> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ListViewKeyToItemHandlerBox:: { vtable: &ListViewKeyToItemHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -57715,13 +57715,13 @@ impl ListViewKeyToItemHandler { } #[cfg(feature = "Foundation")] #[repr(C)] -struct ListViewKeyToItemHandlerBox ::windows::core::Result> + 'static> { +struct ListViewKeyToItemHandlerBox ::windows::core::Result> + ::core::marker::Send + 'static> { vtable: *const ListViewKeyToItemHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "Foundation")] -impl ::windows::core::Result> + 'static> ListViewKeyToItemHandlerBox { +impl ::windows::core::Result> + ::core::marker::Send + 'static> ListViewKeyToItemHandlerBox { const VTABLE: ListViewKeyToItemHandler_Vtbl = ListViewKeyToItemHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -66648,7 +66648,7 @@ unsafe impl ::core::marker::Sync for NotifyEventArgs {} #[repr(transparent)] pub struct NotifyEventHandler(pub ::windows::core::IUnknown); impl NotifyEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = NotifyEventHandlerBox:: { vtable: &NotifyEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -66659,12 +66659,12 @@ impl NotifyEventHandler { } } #[repr(C)] -struct NotifyEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct NotifyEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const NotifyEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> NotifyEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> NotifyEventHandlerBox { const VTABLE: NotifyEventHandler_Vtbl = NotifyEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -80754,7 +80754,7 @@ unsafe impl ::core::marker::Sync for SectionsInViewChangedEventArgs {} #[repr(transparent)] pub struct SectionsInViewChangedEventHandler(pub ::windows::core::IUnknown); impl SectionsInViewChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SectionsInViewChangedEventHandlerBox:: { vtable: &SectionsInViewChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -80765,12 +80765,12 @@ impl SectionsInViewChangedEventHandler { } } #[repr(C)] -struct SectionsInViewChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct SectionsInViewChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SectionsInViewChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> SectionsInViewChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SectionsInViewChangedEventHandlerBox { const VTABLE: SectionsInViewChangedEventHandler_Vtbl = SectionsInViewChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -80965,7 +80965,7 @@ unsafe impl ::core::marker::Sync for SelectionChangedEventArgs {} #[repr(transparent)] pub struct SelectionChangedEventHandler(pub ::windows::core::IUnknown); impl SelectionChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SelectionChangedEventHandlerBox:: { vtable: &SelectionChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -80976,12 +80976,12 @@ impl SelectionChangedEventHandler { } } #[repr(C)] -struct SelectionChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct SelectionChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SelectionChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> SelectionChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SelectionChangedEventHandlerBox { const VTABLE: SelectionChangedEventHandler_Vtbl = SelectionChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -81656,7 +81656,7 @@ unsafe impl ::core::marker::Sync for SemanticZoomViewChangedEventArgs {} #[repr(transparent)] pub struct SemanticZoomViewChangedEventHandler(pub ::windows::core::IUnknown); impl SemanticZoomViewChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SemanticZoomViewChangedEventHandlerBox:: { vtable: &SemanticZoomViewChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -81667,12 +81667,12 @@ impl SemanticZoomViewChangedEventHandler { } } #[repr(C)] -struct SemanticZoomViewChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct SemanticZoomViewChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SemanticZoomViewChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> SemanticZoomViewChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SemanticZoomViewChangedEventHandlerBox { const VTABLE: SemanticZoomViewChangedEventHandler_Vtbl = SemanticZoomViewChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -89237,7 +89237,7 @@ unsafe impl ::core::marker::Sync for TextChangedEventArgs {} #[repr(transparent)] pub struct TextChangedEventHandler(pub ::windows::core::IUnknown); impl TextChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = TextChangedEventHandlerBox:: { vtable: &TextChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -89248,12 +89248,12 @@ impl TextChangedEventHandler { } } #[repr(C)] -struct TextChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct TextChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const TextChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> TextChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> TextChangedEventHandlerBox { const VTABLE: TextChangedEventHandler_Vtbl = TextChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -89997,7 +89997,7 @@ unsafe impl ::core::marker::Sync for TextControlPasteEventArgs {} #[repr(transparent)] pub struct TextControlPasteEventHandler(pub ::windows::core::IUnknown); impl TextControlPasteEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = TextControlPasteEventHandlerBox:: { vtable: &TextControlPasteEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -90008,12 +90008,12 @@ impl TextControlPasteEventHandler { } } #[repr(C)] -struct TextControlPasteEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct TextControlPasteEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const TextControlPasteEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> TextControlPasteEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> TextControlPasteEventHandlerBox { const VTABLE: TextControlPasteEventHandler_Vtbl = TextControlPasteEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -99454,7 +99454,7 @@ unsafe impl ::core::marker::Sync for WebViewNavigationFailedEventArgs {} #[repr(transparent)] pub struct WebViewNavigationFailedEventHandler(pub ::windows::core::IUnknown); impl WebViewNavigationFailedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WebViewNavigationFailedEventHandlerBox:: { vtable: &WebViewNavigationFailedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -99465,12 +99465,12 @@ impl WebViewNavigationFailedEventHandler { } } #[repr(C)] -struct WebViewNavigationFailedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct WebViewNavigationFailedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const WebViewNavigationFailedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> WebViewNavigationFailedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> WebViewNavigationFailedEventHandlerBox { const VTABLE: WebViewNavigationFailedEventHandler_Vtbl = WebViewNavigationFailedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Data/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Data/mod.rs index 3f44def214..ea2749cd52 100644 --- a/crates/libs/windows/src/Windows/UI/Xaml/Data/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Xaml/Data/mod.rs @@ -1003,7 +1003,7 @@ unsafe impl ::core::marker::Sync for CurrentChangingEventArgs {} #[repr(transparent)] pub struct CurrentChangingEventHandler(pub ::windows::core::IUnknown); impl CurrentChangingEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = CurrentChangingEventHandlerBox:: { vtable: &CurrentChangingEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1014,12 +1014,12 @@ impl CurrentChangingEventHandler { } } #[repr(C)] -struct CurrentChangingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct CurrentChangingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const CurrentChangingEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> CurrentChangingEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> CurrentChangingEventHandlerBox { const VTABLE: CurrentChangingEventHandler_Vtbl = CurrentChangingEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -3038,7 +3038,7 @@ unsafe impl ::core::marker::Sync for PropertyChangedEventArgs {} #[repr(transparent)] pub struct PropertyChangedEventHandler(pub ::windows::core::IUnknown); impl PropertyChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = PropertyChangedEventHandlerBox:: { vtable: &PropertyChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3049,12 +3049,12 @@ impl PropertyChangedEventHandler { } } #[repr(C)] -struct PropertyChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct PropertyChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const PropertyChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> PropertyChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> PropertyChangedEventHandlerBox { const VTABLE: PropertyChangedEventHandler_Vtbl = PropertyChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Input/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Input/mod.rs index 1e8a0a4875..5e83fddb07 100644 --- a/crates/libs/windows/src/Windows/UI/Xaml/Input/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Xaml/Input/mod.rs @@ -721,7 +721,7 @@ unsafe impl ::core::marker::Sync for ContextRequestedEventArgs {} #[repr(transparent)] pub struct DoubleTappedEventHandler(pub ::windows::core::IUnknown); impl DoubleTappedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DoubleTappedEventHandlerBox:: { vtable: &DoubleTappedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -732,12 +732,12 @@ impl DoubleTappedEventHandler { } } #[repr(C)] -struct DoubleTappedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct DoubleTappedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DoubleTappedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DoubleTappedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DoubleTappedEventHandlerBox { const VTABLE: DoubleTappedEventHandler_Vtbl = DoubleTappedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1924,7 +1924,7 @@ unsafe impl ::core::marker::Sync for GettingFocusEventArgs {} #[repr(transparent)] pub struct HoldingEventHandler(pub ::windows::core::IUnknown); impl HoldingEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = HoldingEventHandlerBox:: { vtable: &HoldingEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1935,12 +1935,12 @@ impl HoldingEventHandler { } } #[repr(C)] -struct HoldingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct HoldingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const HoldingEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> HoldingEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> HoldingEventHandlerBox { const VTABLE: HoldingEventHandler_Vtbl = HoldingEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -4101,7 +4101,7 @@ impl ::windows::core::DefaultType for InputScopeNameValue { #[repr(transparent)] pub struct KeyEventHandler(pub ::windows::core::IUnknown); impl KeyEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = KeyEventHandlerBox:: { vtable: &KeyEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -4112,12 +4112,12 @@ impl KeyEventHandler { } } #[repr(C)] -struct KeyEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct KeyEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const KeyEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> KeyEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> KeyEventHandlerBox { const VTABLE: KeyEventHandler_Vtbl = KeyEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -4932,7 +4932,7 @@ unsafe impl ::core::marker::Sync for LosingFocusEventArgs {} #[repr(transparent)] pub struct ManipulationCompletedEventHandler(pub ::windows::core::IUnknown); impl ManipulationCompletedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ManipulationCompletedEventHandlerBox:: { vtable: &ManipulationCompletedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -4943,12 +4943,12 @@ impl ManipulationCompletedEventHandler { } } #[repr(C)] -struct ManipulationCompletedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ManipulationCompletedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ManipulationCompletedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ManipulationCompletedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ManipulationCompletedEventHandlerBox { const VTABLE: ManipulationCompletedEventHandler_Vtbl = ManipulationCompletedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -5175,7 +5175,7 @@ unsafe impl ::core::marker::Sync for ManipulationCompletedRoutedEventArgs {} #[repr(transparent)] pub struct ManipulationDeltaEventHandler(pub ::windows::core::IUnknown); impl ManipulationDeltaEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ManipulationDeltaEventHandlerBox:: { vtable: &ManipulationDeltaEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -5186,12 +5186,12 @@ impl ManipulationDeltaEventHandler { } } #[repr(C)] -struct ManipulationDeltaEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ManipulationDeltaEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ManipulationDeltaEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ManipulationDeltaEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ManipulationDeltaEventHandlerBox { const VTABLE: ManipulationDeltaEventHandler_Vtbl = ManipulationDeltaEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -5432,7 +5432,7 @@ unsafe impl ::core::marker::Sync for ManipulationDeltaRoutedEventArgs {} #[repr(transparent)] pub struct ManipulationInertiaStartingEventHandler(pub ::windows::core::IUnknown); impl ManipulationInertiaStartingEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ManipulationInertiaStartingEventHandlerBox:: { vtable: &ManipulationInertiaStartingEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -5443,12 +5443,12 @@ impl ManipulationInertiaStartingEventHandler { } } #[repr(C)] -struct ManipulationInertiaStartingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ManipulationInertiaStartingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ManipulationInertiaStartingEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ManipulationInertiaStartingEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ManipulationInertiaStartingEventHandlerBox { const VTABLE: ManipulationInertiaStartingEventHandler_Vtbl = ManipulationInertiaStartingEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -5898,7 +5898,7 @@ unsafe impl ::core::marker::Sync for ManipulationPivot {} #[repr(transparent)] pub struct ManipulationStartedEventHandler(pub ::windows::core::IUnknown); impl ManipulationStartedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ManipulationStartedEventHandlerBox:: { vtable: &ManipulationStartedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -5909,12 +5909,12 @@ impl ManipulationStartedEventHandler { } } #[repr(C)] -struct ManipulationStartedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ManipulationStartedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ManipulationStartedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ManipulationStartedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ManipulationStartedEventHandlerBox { const VTABLE: ManipulationStartedEventHandler_Vtbl = ManipulationStartedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -6142,7 +6142,7 @@ unsafe impl ::core::marker::Sync for ManipulationStartedRoutedEventArgs {} #[repr(transparent)] pub struct ManipulationStartingEventHandler(pub ::windows::core::IUnknown); impl ManipulationStartingEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ManipulationStartingEventHandlerBox:: { vtable: &ManipulationStartingEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -6153,12 +6153,12 @@ impl ManipulationStartingEventHandler { } } #[repr(C)] -struct ManipulationStartingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ManipulationStartingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ManipulationStartingEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ManipulationStartingEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ManipulationStartingEventHandlerBox { const VTABLE: ManipulationStartingEventHandler_Vtbl = ManipulationStartingEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -6600,7 +6600,7 @@ unsafe impl ::core::marker::Sync for Pointer {} #[repr(transparent)] pub struct PointerEventHandler(pub ::windows::core::IUnknown); impl PointerEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = PointerEventHandlerBox:: { vtable: &PointerEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -6611,12 +6611,12 @@ impl PointerEventHandler { } } #[repr(C)] -struct PointerEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct PointerEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const PointerEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> PointerEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> PointerEventHandlerBox { const VTABLE: PointerEventHandler_Vtbl = PointerEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -6931,7 +6931,7 @@ unsafe impl ::core::marker::Sync for ProcessKeyboardAcceleratorEventArgs {} #[repr(transparent)] pub struct RightTappedEventHandler(pub ::windows::core::IUnknown); impl RightTappedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RightTappedEventHandlerBox:: { vtable: &RightTappedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -6942,12 +6942,12 @@ impl RightTappedEventHandler { } } #[repr(C)] -struct RightTappedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct RightTappedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const RightTappedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> RightTappedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> RightTappedEventHandlerBox { const VTABLE: RightTappedEventHandler_Vtbl = RightTappedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -7383,7 +7383,7 @@ impl ::windows::core::DefaultType for StandardUICommandKind { #[repr(transparent)] pub struct TappedEventHandler(pub ::windows::core::IUnknown); impl TappedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = TappedEventHandlerBox:: { vtable: &TappedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -7394,12 +7394,12 @@ impl TappedEventHandler { } } #[repr(C)] -struct TappedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct TappedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const TappedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> TappedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> TappedEventHandlerBox { const VTABLE: TappedEventHandler_Vtbl = TappedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Interop/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Interop/mod.rs index a66e402b69..af41f083b2 100644 --- a/crates/libs/windows/src/Windows/UI/Xaml/Interop/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Xaml/Interop/mod.rs @@ -3,7 +3,7 @@ #[repr(transparent)] pub struct BindableVectorChangedEventHandler(pub ::windows::core::IUnknown); impl BindableVectorChangedEventHandler { - pub fn new, &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = BindableVectorChangedEventHandlerBox:: { vtable: &BindableVectorChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -14,12 +14,12 @@ impl BindableVectorChangedEventHandler { } } #[repr(C)] -struct BindableVectorChangedEventHandlerBox, &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> + 'static> { +struct BindableVectorChangedEventHandlerBox, &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const BindableVectorChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> + 'static> BindableVectorChangedEventHandlerBox { +impl, &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> BindableVectorChangedEventHandlerBox { const VTABLE: BindableVectorChangedEventHandler_Vtbl = BindableVectorChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1073,7 +1073,7 @@ unsafe impl ::core::marker::Sync for NotifyCollectionChangedEventArgs {} #[repr(transparent)] pub struct NotifyCollectionChangedEventHandler(pub ::windows::core::IUnknown); impl NotifyCollectionChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = NotifyCollectionChangedEventHandlerBox:: { vtable: &NotifyCollectionChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1084,12 +1084,12 @@ impl NotifyCollectionChangedEventHandler { } } #[repr(C)] -struct NotifyCollectionChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct NotifyCollectionChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const NotifyCollectionChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> NotifyCollectionChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> NotifyCollectionChangedEventHandlerBox { const VTABLE: NotifyCollectionChangedEventHandler_Vtbl = NotifyCollectionChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Media/Imaging/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Media/Imaging/mod.rs index 5201f3a0fa..58dd252a13 100644 --- a/crates/libs/windows/src/Windows/UI/Xaml/Media/Imaging/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Xaml/Media/Imaging/mod.rs @@ -721,7 +721,7 @@ unsafe impl ::core::marker::Sync for DownloadProgressEventArgs {} #[repr(transparent)] pub struct DownloadProgressEventHandler(pub ::windows::core::IUnknown); impl DownloadProgressEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DownloadProgressEventHandlerBox:: { vtable: &DownloadProgressEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -732,12 +732,12 @@ impl DownloadProgressEventHandler { } } #[repr(C)] -struct DownloadProgressEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct DownloadProgressEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DownloadProgressEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DownloadProgressEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DownloadProgressEventHandlerBox { const VTABLE: DownloadProgressEventHandler_Vtbl = DownloadProgressEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Media/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Media/mod.rs index 841a44dce4..6618a6ad05 100644 --- a/crates/libs/windows/src/Windows/UI/Xaml/Media/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Xaml/Media/mod.rs @@ -10759,7 +10759,7 @@ unsafe impl ::core::marker::Sync for RateChangedRoutedEventArgs {} #[repr(transparent)] pub struct RateChangedRoutedEventHandler(pub ::windows::core::IUnknown); impl RateChangedRoutedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RateChangedRoutedEventHandlerBox:: { vtable: &RateChangedRoutedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -10770,12 +10770,12 @@ impl RateChangedRoutedEventHandler { } } #[repr(C)] -struct RateChangedRoutedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct RateChangedRoutedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const RateChangedRoutedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> RateChangedRoutedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> RateChangedRoutedEventHandlerBox { const VTABLE: RateChangedRoutedEventHandler_Vtbl = RateChangedRoutedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -13810,7 +13810,7 @@ unsafe impl ::core::marker::Sync for TimelineMarkerRoutedEventArgs {} #[repr(transparent)] pub struct TimelineMarkerRoutedEventHandler(pub ::windows::core::IUnknown); impl TimelineMarkerRoutedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = TimelineMarkerRoutedEventHandlerBox:: { vtable: &TimelineMarkerRoutedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -13821,12 +13821,12 @@ impl TimelineMarkerRoutedEventHandler { } } #[repr(C)] -struct TimelineMarkerRoutedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct TimelineMarkerRoutedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const TimelineMarkerRoutedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> TimelineMarkerRoutedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> TimelineMarkerRoutedEventHandlerBox { const VTABLE: TimelineMarkerRoutedEventHandler_Vtbl = TimelineMarkerRoutedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Navigation/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Navigation/mod.rs index 40c67e106d..9539ebe953 100644 --- a/crates/libs/windows/src/Windows/UI/Xaml/Navigation/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Xaml/Navigation/mod.rs @@ -307,7 +307,7 @@ pub struct IPageStackEntryStatics_Vtbl { #[repr(transparent)] pub struct LoadCompletedEventHandler(pub ::windows::core::IUnknown); impl LoadCompletedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = LoadCompletedEventHandlerBox:: { vtable: &LoadCompletedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -318,12 +318,12 @@ impl LoadCompletedEventHandler { } } #[repr(C)] -struct LoadCompletedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct LoadCompletedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const LoadCompletedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> LoadCompletedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> LoadCompletedEventHandlerBox { const VTABLE: LoadCompletedEventHandler_Vtbl = LoadCompletedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -385,7 +385,7 @@ pub struct LoadCompletedEventHandler_Vtbl { #[repr(transparent)] pub struct NavigatedEventHandler(pub ::windows::core::IUnknown); impl NavigatedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = NavigatedEventHandlerBox:: { vtable: &NavigatedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -396,12 +396,12 @@ impl NavigatedEventHandler { } } #[repr(C)] -struct NavigatedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct NavigatedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const NavigatedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> NavigatedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> NavigatedEventHandlerBox { const VTABLE: NavigatedEventHandler_Vtbl = NavigatedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -583,7 +583,7 @@ unsafe impl ::core::marker::Sync for NavigatingCancelEventArgs {} #[repr(transparent)] pub struct NavigatingCancelEventHandler(pub ::windows::core::IUnknown); impl NavigatingCancelEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = NavigatingCancelEventHandlerBox:: { vtable: &NavigatingCancelEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -594,12 +594,12 @@ impl NavigatingCancelEventHandler { } } #[repr(C)] -struct NavigatingCancelEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct NavigatingCancelEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const NavigatingCancelEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> NavigatingCancelEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> NavigatingCancelEventHandlerBox { const VTABLE: NavigatingCancelEventHandler_Vtbl = NavigatingCancelEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -928,7 +928,7 @@ unsafe impl ::core::marker::Sync for NavigationFailedEventArgs {} #[repr(transparent)] pub struct NavigationFailedEventHandler(pub ::windows::core::IUnknown); impl NavigationFailedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = NavigationFailedEventHandlerBox:: { vtable: &NavigationFailedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -939,12 +939,12 @@ impl NavigationFailedEventHandler { } } #[repr(C)] -struct NavigationFailedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct NavigationFailedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const NavigationFailedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> NavigationFailedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> NavigationFailedEventHandlerBox { const VTABLE: NavigationFailedEventHandler_Vtbl = NavigationFailedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -1041,7 +1041,7 @@ impl ::windows::core::DefaultType for NavigationMode { #[repr(transparent)] pub struct NavigationStoppedEventHandler(pub ::windows::core::IUnknown); impl NavigationStoppedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = NavigationStoppedEventHandlerBox:: { vtable: &NavigationStoppedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -1052,12 +1052,12 @@ impl NavigationStoppedEventHandler { } } #[repr(C)] -struct NavigationStoppedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct NavigationStoppedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const NavigationStoppedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> NavigationStoppedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> NavigationStoppedEventHandlerBox { const VTABLE: NavigationStoppedEventHandler_Vtbl = NavigationStoppedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Printing/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Printing/mod.rs index ce6f7c8e18..07a8c63bca 100644 --- a/crates/libs/windows/src/Windows/UI/Xaml/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Xaml/Printing/mod.rs @@ -92,7 +92,7 @@ unsafe impl ::core::marker::Sync for AddPagesEventArgs {} #[repr(transparent)] pub struct AddPagesEventHandler(pub ::windows::core::IUnknown); impl AddPagesEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = AddPagesEventHandlerBox:: { vtable: &AddPagesEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -103,12 +103,12 @@ impl AddPagesEventHandler { } } #[repr(C)] -struct AddPagesEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct AddPagesEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const AddPagesEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> AddPagesEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> AddPagesEventHandlerBox { const VTABLE: AddPagesEventHandler_Vtbl = AddPagesEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -258,7 +258,7 @@ unsafe impl ::core::marker::Sync for GetPreviewPageEventArgs {} #[repr(transparent)] pub struct GetPreviewPageEventHandler(pub ::windows::core::IUnknown); impl GetPreviewPageEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = GetPreviewPageEventHandlerBox:: { vtable: &GetPreviewPageEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -269,12 +269,12 @@ impl GetPreviewPageEventHandler { } } #[repr(C)] -struct GetPreviewPageEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct GetPreviewPageEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const GetPreviewPageEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> GetPreviewPageEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> GetPreviewPageEventHandlerBox { const VTABLE: GetPreviewPageEventHandler_Vtbl = GetPreviewPageEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -550,7 +550,7 @@ unsafe impl ::core::marker::Sync for PaginateEventArgs {} #[repr(transparent)] pub struct PaginateEventHandler(pub ::windows::core::IUnknown); impl PaginateEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = PaginateEventHandlerBox:: { vtable: &PaginateEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -561,12 +561,12 @@ impl PaginateEventHandler { } } #[repr(C)] -struct PaginateEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct PaginateEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const PaginateEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> PaginateEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> PaginateEventHandlerBox { const VTABLE: PaginateEventHandler_Vtbl = PaginateEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/libs/windows/src/Windows/UI/Xaml/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/mod.rs index 5cd6d88b22..c77c398e6e 100644 --- a/crates/libs/windows/src/Windows/UI/Xaml/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Xaml/mod.rs @@ -542,7 +542,7 @@ impl ::windows::core::DefaultType for ApplicationHighContrastAdjustment { #[repr(transparent)] pub struct ApplicationInitializationCallback(pub ::windows::core::IUnknown); impl ApplicationInitializationCallback { - pub fn new) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ApplicationInitializationCallbackBox:: { vtable: &ApplicationInitializationCallbackBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -553,12 +553,12 @@ impl ApplicationInitializationCallback { } } #[repr(C)] -struct ApplicationInitializationCallbackBox) -> ::windows::core::Result<()> + 'static> { +struct ApplicationInitializationCallbackBox) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ApplicationInitializationCallback_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl) -> ::windows::core::Result<()> + 'static> ApplicationInitializationCallbackBox { +impl) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ApplicationInitializationCallbackBox { const VTABLE: ApplicationInitializationCallback_Vtbl = ApplicationInitializationCallback_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -910,7 +910,7 @@ unsafe impl ::core::marker::Sync for BindingFailedEventArgs {} #[repr(transparent)] pub struct BindingFailedEventHandler(pub ::windows::core::IUnknown); impl BindingFailedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = BindingFailedEventHandlerBox:: { vtable: &BindingFailedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -921,12 +921,12 @@ impl BindingFailedEventHandler { } } #[repr(C)] -struct BindingFailedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct BindingFailedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const BindingFailedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> BindingFailedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> BindingFailedEventHandlerBox { const VTABLE: BindingFailedEventHandler_Vtbl = BindingFailedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -2248,7 +2248,7 @@ unsafe impl ::core::marker::Sync for CornerRadiusHelper {} #[repr(transparent)] pub struct CreateDefaultValueCallback(pub ::windows::core::IUnknown); impl CreateDefaultValueCallback { - pub fn new ::windows::core::Result<::windows::core::IInspectable> + 'static>(invoke: F) -> Self { + pub fn new ::windows::core::Result<::windows::core::IInspectable> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = CreateDefaultValueCallbackBox:: { vtable: &CreateDefaultValueCallbackBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -2262,12 +2262,12 @@ impl CreateDefaultValueCallback { } } #[repr(C)] -struct CreateDefaultValueCallbackBox ::windows::core::Result<::windows::core::IInspectable> + 'static> { +struct CreateDefaultValueCallbackBox ::windows::core::Result<::windows::core::IInspectable> + ::core::marker::Send + 'static> { vtable: *const CreateDefaultValueCallback_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl ::windows::core::Result<::windows::core::IInspectable> + 'static> CreateDefaultValueCallbackBox { +impl ::windows::core::Result<::windows::core::IInspectable> + ::core::marker::Send + 'static> CreateDefaultValueCallbackBox { const VTABLE: CreateDefaultValueCallback_Vtbl = CreateDefaultValueCallback_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -3498,7 +3498,7 @@ unsafe impl ::core::marker::Sync for DependencyProperty {} #[repr(transparent)] pub struct DependencyPropertyChangedCallback(pub ::windows::core::IUnknown); impl DependencyPropertyChangedCallback { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DependencyPropertyChangedCallbackBox:: { vtable: &DependencyPropertyChangedCallbackBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3509,12 +3509,12 @@ impl DependencyPropertyChangedCallback { } } #[repr(C)] -struct DependencyPropertyChangedCallbackBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct DependencyPropertyChangedCallbackBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DependencyPropertyChangedCallback_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DependencyPropertyChangedCallbackBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DependencyPropertyChangedCallbackBox { const VTABLE: DependencyPropertyChangedCallback_Vtbl = DependencyPropertyChangedCallback_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -3673,7 +3673,7 @@ unsafe impl ::core::marker::Sync for DependencyPropertyChangedEventArgs {} #[repr(transparent)] pub struct DependencyPropertyChangedEventHandler(pub ::windows::core::IUnknown); impl DependencyPropertyChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DependencyPropertyChangedEventHandlerBox:: { vtable: &DependencyPropertyChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -3684,12 +3684,12 @@ impl DependencyPropertyChangedEventHandler { } } #[repr(C)] -struct DependencyPropertyChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct DependencyPropertyChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DependencyPropertyChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DependencyPropertyChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DependencyPropertyChangedEventHandlerBox { const VTABLE: DependencyPropertyChangedEventHandler_Vtbl = DependencyPropertyChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -4080,7 +4080,7 @@ unsafe impl ::core::marker::Sync for DragEventArgs {} #[repr(transparent)] pub struct DragEventHandler(pub ::windows::core::IUnknown); impl DragEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DragEventHandlerBox:: { vtable: &DragEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -4091,12 +4091,12 @@ impl DragEventHandler { } } #[repr(C)] -struct DragEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct DragEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const DragEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DragEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DragEventHandlerBox { const VTABLE: DragEventHandler_Vtbl = DragEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -5675,7 +5675,7 @@ impl ::windows::core::DefaultType for ElementTheme { pub struct EnteredBackgroundEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "ApplicationModel")] impl EnteredBackgroundEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = EnteredBackgroundEventHandlerBox:: { vtable: &EnteredBackgroundEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -5688,13 +5688,13 @@ impl EnteredBackgroundEventHandler { } #[cfg(feature = "ApplicationModel")] #[repr(C)] -struct EnteredBackgroundEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct EnteredBackgroundEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const EnteredBackgroundEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "ApplicationModel")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> EnteredBackgroundEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> EnteredBackgroundEventHandlerBox { const VTABLE: EnteredBackgroundEventHandler_Vtbl = EnteredBackgroundEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -6009,7 +6009,7 @@ unsafe impl ::core::marker::Sync for ExceptionRoutedEventArgs {} #[repr(transparent)] pub struct ExceptionRoutedEventHandler(pub ::windows::core::IUnknown); impl ExceptionRoutedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ExceptionRoutedEventHandlerBox:: { vtable: &ExceptionRoutedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -6020,12 +6020,12 @@ impl ExceptionRoutedEventHandler { } } #[repr(C)] -struct ExceptionRoutedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct ExceptionRoutedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const ExceptionRoutedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ExceptionRoutedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ExceptionRoutedEventHandlerBox { const VTABLE: ExceptionRoutedEventHandler_Vtbl = ExceptionRoutedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -12089,7 +12089,7 @@ pub struct IXamlRootChangedEventArgs_Vtbl { pub struct LeavingBackgroundEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "ApplicationModel")] impl LeavingBackgroundEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = LeavingBackgroundEventHandlerBox:: { vtable: &LeavingBackgroundEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -12102,13 +12102,13 @@ impl LeavingBackgroundEventHandler { } #[cfg(feature = "ApplicationModel")] #[repr(C)] -struct LeavingBackgroundEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct LeavingBackgroundEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const LeavingBackgroundEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "ApplicationModel")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> LeavingBackgroundEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> LeavingBackgroundEventHandlerBox { const VTABLE: LeavingBackgroundEventHandler_Vtbl = LeavingBackgroundEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -12454,7 +12454,7 @@ unsafe impl ::core::marker::Sync for PointHelper {} #[repr(transparent)] pub struct PropertyChangedCallback(pub ::windows::core::IUnknown); impl PropertyChangedCallback { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = PropertyChangedCallbackBox:: { vtable: &PropertyChangedCallbackBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -12465,12 +12465,12 @@ impl PropertyChangedCallback { } } #[repr(C)] -struct PropertyChangedCallbackBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct PropertyChangedCallbackBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const PropertyChangedCallback_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> PropertyChangedCallbackBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> PropertyChangedCallbackBox { const VTABLE: PropertyChangedCallback_Vtbl = PropertyChangedCallback_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -13445,7 +13445,7 @@ unsafe impl ::core::marker::Sync for RoutedEventArgs {} #[repr(transparent)] pub struct RoutedEventHandler(pub ::windows::core::IUnknown); impl RoutedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RoutedEventHandlerBox:: { vtable: &RoutedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -13456,12 +13456,12 @@ impl RoutedEventHandler { } } #[repr(C)] -struct RoutedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct RoutedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const RoutedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> RoutedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> RoutedEventHandlerBox { const VTABLE: RoutedEventHandler_Vtbl = RoutedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -14266,7 +14266,7 @@ unsafe impl ::core::marker::Sync for SizeChangedEventArgs {} #[repr(transparent)] pub struct SizeChangedEventHandler(pub ::windows::core::IUnknown); impl SizeChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SizeChangedEventHandlerBox:: { vtable: &SizeChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -14277,12 +14277,12 @@ impl SizeChangedEventHandler { } } #[repr(C)] -struct SizeChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct SizeChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SizeChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> SizeChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SizeChangedEventHandlerBox { const VTABLE: SizeChangedEventHandler_Vtbl = SizeChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -14861,7 +14861,7 @@ unsafe impl ::core::marker::Sync for Style {} pub struct SuspendingEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "ApplicationModel")] impl SuspendingEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SuspendingEventHandlerBox:: { vtable: &SuspendingEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -14874,13 +14874,13 @@ impl SuspendingEventHandler { } #[cfg(feature = "ApplicationModel")] #[repr(C)] -struct SuspendingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct SuspendingEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const SuspendingEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "ApplicationModel")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> SuspendingEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> SuspendingEventHandlerBox { const VTABLE: SuspendingEventHandler_Vtbl = SuspendingEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -18636,7 +18636,7 @@ unsafe impl ::core::marker::Sync for UnhandledExceptionEventArgs {} #[repr(transparent)] pub struct UnhandledExceptionEventHandler(pub ::windows::core::IUnknown); impl UnhandledExceptionEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = UnhandledExceptionEventHandlerBox:: { vtable: &UnhandledExceptionEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -18647,12 +18647,12 @@ impl UnhandledExceptionEventHandler { } } #[repr(C)] -struct UnhandledExceptionEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct UnhandledExceptionEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const UnhandledExceptionEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> UnhandledExceptionEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> UnhandledExceptionEventHandlerBox { const VTABLE: UnhandledExceptionEventHandler_Vtbl = UnhandledExceptionEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -19226,7 +19226,7 @@ unsafe impl ::core::marker::Sync for VisualStateChangedEventArgs {} #[repr(transparent)] pub struct VisualStateChangedEventHandler(pub ::windows::core::IUnknown); impl VisualStateChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = VisualStateChangedEventHandlerBox:: { vtable: &VisualStateChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -19237,12 +19237,12 @@ impl VisualStateChangedEventHandler { } } #[repr(C)] -struct VisualStateChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct VisualStateChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const VisualStateChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> VisualStateChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> VisualStateChangedEventHandlerBox { const VTABLE: VisualStateChangedEventHandler_Vtbl = VisualStateChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -20043,7 +20043,7 @@ unsafe impl ::core::marker::Sync for Window {} pub struct WindowActivatedEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "UI_Core")] impl WindowActivatedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WindowActivatedEventHandlerBox:: { vtable: &WindowActivatedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -20056,13 +20056,13 @@ impl WindowActivatedEventHandler { } #[cfg(feature = "UI_Core")] #[repr(C)] -struct WindowActivatedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct WindowActivatedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const WindowActivatedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "UI_Core")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> WindowActivatedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> WindowActivatedEventHandlerBox { const VTABLE: WindowActivatedEventHandler_Vtbl = WindowActivatedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -20136,7 +20136,7 @@ pub struct WindowActivatedEventHandler_Vtbl { pub struct WindowClosedEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "UI_Core")] impl WindowClosedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WindowClosedEventHandlerBox:: { vtable: &WindowClosedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -20149,13 +20149,13 @@ impl WindowClosedEventHandler { } #[cfg(feature = "UI_Core")] #[repr(C)] -struct WindowClosedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct WindowClosedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const WindowClosedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "UI_Core")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> WindowClosedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> WindowClosedEventHandlerBox { const VTABLE: WindowClosedEventHandler_Vtbl = WindowClosedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -20310,7 +20310,7 @@ unsafe impl ::core::marker::Sync for WindowCreatedEventArgs {} pub struct WindowSizeChangedEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "UI_Core")] impl WindowSizeChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WindowSizeChangedEventHandlerBox:: { vtable: &WindowSizeChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -20323,13 +20323,13 @@ impl WindowSizeChangedEventHandler { } #[cfg(feature = "UI_Core")] #[repr(C)] -struct WindowSizeChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct WindowSizeChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const WindowSizeChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "UI_Core")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> WindowSizeChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> WindowSizeChangedEventHandlerBox { const VTABLE: WindowSizeChangedEventHandler_Vtbl = WindowSizeChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; @@ -20403,7 +20403,7 @@ pub struct WindowSizeChangedEventHandler_Vtbl { pub struct WindowVisibilityChangedEventHandler(pub ::windows::core::IUnknown); #[cfg(feature = "UI_Core")] impl WindowVisibilityChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WindowVisibilityChangedEventHandlerBox:: { vtable: &WindowVisibilityChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } @@ -20416,13 +20416,13 @@ impl WindowVisibilityChangedEventHandler { } #[cfg(feature = "UI_Core")] #[repr(C)] -struct WindowVisibilityChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { +struct WindowVisibilityChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { vtable: *const WindowVisibilityChangedEventHandler_Vtbl, invoke: F, count: ::windows::core::RefCount, } #[cfg(feature = "UI_Core")] -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> WindowVisibilityChangedEventHandlerBox { +impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> WindowVisibilityChangedEventHandlerBox { const VTABLE: WindowVisibilityChangedEventHandler_Vtbl = WindowVisibilityChangedEventHandler_Vtbl { base: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { let this = this as *mut ::windows::core::RawPtr as *mut Self; diff --git a/crates/tests/arch/Cargo.toml b/crates/tests/arch/Cargo.toml index 57318c5897..f1b2a8116c 100644 --- a/crates/tests/arch/Cargo.toml +++ b/crates/tests/arch/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "test_win32_arch" +name = "test_arch" version = "0.0.0" authors = ["Microsoft"] edition = "2018" diff --git a/crates/tests/arch_feature/Cargo.toml b/crates/tests/arch_feature/Cargo.toml index ebd6b9e0b0..2b1d58361d 100644 --- a/crates/tests/arch_feature/Cargo.toml +++ b/crates/tests/arch_feature/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "test_win32_arch_feature" +name = "test_arch_feature" version = "0.0.0" authors = ["Microsoft"] edition = "2018" diff --git a/crates/tests/bstr/Cargo.toml b/crates/tests/bstr/Cargo.toml index 32d58092d2..d0d7b6d459 100644 --- a/crates/tests/bstr/Cargo.toml +++ b/crates/tests/bstr/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "test_win32_bstr" +name = "test_bstr" version = "0.0.0" authors = ["Microsoft"] edition = "2018" diff --git a/crates/tests/lib/Cargo.toml b/crates/tests/lib/Cargo.toml index 736f1d6811..7619246cd6 100644 --- a/crates/tests/lib/Cargo.toml +++ b/crates/tests/lib/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "test_win32_lib" +name = "test_lib" version = "0.0.0" authors = ["Microsoft"] edition = "2018" diff --git a/crates/tests/mshtml/Cargo.toml b/crates/tests/mshtml/Cargo.toml index 6d6d22b235..1304339e47 100644 --- a/crates/tests/mshtml/Cargo.toml +++ b/crates/tests/mshtml/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "test_win32_mshtml" +name = "test_mshtml" version = "0.0.0" authors = ["Microsoft"] edition = "2018" diff --git a/crates/tests/sys/tests/simple.rs b/crates/tests/sys/tests/simple.rs index 0f3b923811..4b8a2a6219 100644 --- a/crates/tests/sys/tests/simple.rs +++ b/crates/tests/sys/tests/simple.rs @@ -24,7 +24,7 @@ fn types() { let _: i32 = DBG_APP_NOT_IDLE; // Handles - let _: HANDLE = std::ptr::null_mut(); + let _: HANDLE = 0; let _: PSTR = b"hello\0".as_ptr() as _; } diff --git a/crates/tests/unions/tests/overlapped.rs b/crates/tests/unions/tests/overlapped.rs index c8f3d5b6d3..6e2ef987bc 100644 --- a/crates/tests/unions/tests/overlapped.rs +++ b/crates/tests/unions/tests/overlapped.rs @@ -1,11 +1,11 @@ use windows::Win32::{ Foundation::HANDLE, - System::IO::{OVERLAPPED, OVERLAPPED_0, OVERLAPPED_0_0}, + System::IO::{OVERLAPPED, OVERLAPPED_0_0}, }; #[test] fn test() { - let mut o = OVERLAPPED { Internal: 1, InternalHigh: 2, Anonymous: OVERLAPPED_0 { Pointer: core::ptr::null_mut() }, hEvent: Default::default() }; + let mut o = OVERLAPPED { Internal: 1, InternalHigh: 2, Anonymous: unsafe { std::mem::zeroed() }, hEvent: Default::default() }; assert_eq!(o.Internal, 1); o.Internal = 10; diff --git a/crates/tests/weak/Cargo.toml b/crates/tests/weak/Cargo.toml index ce34f876ff..bd502617c8 100644 --- a/crates/tests/weak/Cargo.toml +++ b/crates/tests/weak/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "test_winrt_weak" +name = "test_weak" version = "0.0.0" authors = ["Microsoft"] edition = "2018" diff --git a/crates/tools/yml/src/main.rs b/crates/tools/yml/src/main.rs index a5f7158bc2..57aafd6c79 100644 --- a/crates/tools/yml/src/main.rs +++ b/crates/tools/yml/src/main.rs @@ -1,11 +1,6 @@ -use std::io::prelude::*; - fn main() { let root = std::path::PathBuf::from(reader::workspace_dir()); - let mut yml = std::fs::File::create(root.join(".github/workflows/test.yml")).unwrap(); - - yml.write_all( - r#"name: Test + let mut yml = r#"name: Test on: pull_request: @@ -73,63 +68,58 @@ jobs: if: contains(matrix.other, 'windows-gnu') - name: Test stable (${{ matrix.os }}) - run: | -"# - .as_bytes(), - ) - .unwrap(); + run: |"# + .to_string(); - if let Ok(files) = std::fs::read_dir(root.join("crates/tests")) { - for file in files.filter_map(|file| file.ok()) { - if let Ok(file_type) = file.file_type() { - if file_type.is_dir() { - let name = file.file_name().to_str().unwrap().to_string(); - if !name.starts_with("implement_") { - yml.write_all(format!(" cargo test --target ${{{{ matrix.other }}}} -p test_{}\n", name).as_bytes()).unwrap(); - } - } - } + for name in dirs(&root, "crates/tests") { + if !name.starts_with("implement") { + yml.push_str(&format!("\n cargo test --target ${{{{ matrix.other }}}} -p test_{} &&", name)); } } - yml.write_all( - r#" if: contains(matrix.rust, 'stable') + yml.truncate(yml.len() - 2); + + yml.push_str( + r#" + if: contains(matrix.rust, 'stable') - name: Test nightly (${{ matrix.os }}) - run: | -"# - .as_bytes(), - ) - .unwrap(); + run: |"#, + ); - if let Ok(files) = std::fs::read_dir(root.join("crates/tests")) { - for file in files.filter_map(|file| file.ok()) { - if let Ok(file_type) = file.file_type() { - if file_type.is_dir() { - let name = file.file_name().to_str().unwrap().to_string(); - if name.starts_with("implement_") { - yml.write_all(format!(" cargo test --target ${{{{ matrix.other }}}} -p test_{}\n", name).as_bytes()).unwrap(); - } - } - } + for name in dirs(&root, "crates/tests") { + if name.starts_with("implement") { + yml.push_str(&format!("\n cargo test --target ${{{{ matrix.other }}}} -p test_{} &&", name)); } } - if let Ok(files) = std::fs::read_dir(root.join("crates/samples")) { + for name in dirs(&root, "crates/samples") { + yml.push_str(&format!("\n cargo test --target ${{{{ matrix.other }}}} -p {} &&", name)); + } + + yml.truncate(yml.len() - 2); + + yml.push_str( + r#" + if: contains(matrix.rust, 'nightly') +"#, + ); + + std::fs::write(root.join(".github/workflows/test.yml"), yml.as_bytes()).unwrap(); +} + +fn dirs(root: &std::path::Path, path: &str) -> Vec { + let mut dirs = vec![]; + + if let Ok(files) = std::fs::read_dir(root.join(path)) { for file in files.filter_map(|file| file.ok()) { if let Ok(file_type) = file.file_type() { if file_type.is_dir() { - let name = file.file_name().to_str().unwrap().to_string(); - yml.write_all(format!(" cargo test --target ${{{{ matrix.other }}}} -p {}\n", name).as_bytes()).unwrap(); + dirs.push(file.file_name().to_str().unwrap().to_string()); } } } } - yml.write_all( - r#" if: contains(matrix.rust, 'nightly') -"# - .as_bytes(), - ) - .unwrap(); + dirs }