1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] 2 #[cfg(feature = "ApplicationModel_UserDataTasks_DataProvider")] 3 pub mod DataProvider; 4 #[repr(transparent)] 5 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 6 #[doc(hidden)] 7 pub struct IUserDataTask(::windows::runtime::IInspectable); 8 unsafe impl ::windows::runtime::Interface for IUserDataTask { 9 type Vtable = IUserDataTask_abi; 10 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2087028177, 57556, 20377, [174, 226, 188, 45, 93, 218, 223, 76]); 11 } 12 #[repr(C)] 13 #[doc(hidden)] 14 pub struct IUserDataTask_abi( 15 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 16 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 17 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 18 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 19 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 20 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 21 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 22 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 23 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 24 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 25 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 26 #[cfg(not(feature = "Foundation"))] usize, 27 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 28 #[cfg(not(feature = "Foundation"))] usize, 29 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 30 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 31 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut UserDataTaskDetailsKind) -> ::windows::runtime::HRESULT, 32 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: UserDataTaskDetailsKind) -> ::windows::runtime::HRESULT, 33 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 34 #[cfg(not(feature = "Foundation"))] usize, 35 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 36 #[cfg(not(feature = "Foundation"))] usize, 37 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut UserDataTaskKind) -> ::windows::runtime::HRESULT, 38 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut UserDataTaskPriority) -> ::windows::runtime::HRESULT, 39 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: UserDataTaskPriority) -> ::windows::runtime::HRESULT, 40 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 41 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 42 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 43 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 44 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 45 #[cfg(not(feature = "Foundation"))] usize, 46 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 47 #[cfg(not(feature = "Foundation"))] usize, 48 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut UserDataTaskSensitivity) -> ::windows::runtime::HRESULT, 49 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: UserDataTaskSensitivity) -> ::windows::runtime::HRESULT, 50 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 51 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 52 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 53 #[cfg(not(feature = "Foundation"))] usize, 54 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 55 #[cfg(not(feature = "Foundation"))] usize, 56 ); 57 #[repr(transparent)] 58 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 59 #[doc(hidden)] 60 pub struct IUserDataTaskBatch(::windows::runtime::IInspectable); 61 unsafe impl ::windows::runtime::Interface for IUserDataTaskBatch { 62 type Vtable = IUserDataTaskBatch_abi; 63 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(942515710, 8373, 17180, [143, 66, 165, 210, 146, 236, 147, 12]); 64 } 65 #[repr(C)] 66 #[doc(hidden)] 67 pub struct IUserDataTaskBatch_abi( 68 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 69 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 70 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 71 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 72 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 73 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 74 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 75 #[cfg(not(feature = "Foundation_Collections"))] usize, 76 ); 77 #[repr(transparent)] 78 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 79 #[doc(hidden)] 80 pub struct IUserDataTaskList(::windows::runtime::IInspectable); 81 unsafe impl ::windows::runtime::Interface for IUserDataTaskList { 82 type Vtable = IUserDataTaskList_abi; 83 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1229008441, 31773, 19953, [190, 211, 49, 75, 124, 191, 94, 78]); 84 } 85 #[repr(C)] 86 #[doc(hidden)] 87 pub struct IUserDataTaskList_abi( 88 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 89 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 90 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 91 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 92 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 93 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 94 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 95 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 96 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 97 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 98 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 99 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut UserDataTaskListOtherAppReadAccess) -> ::windows::runtime::HRESULT, 100 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: UserDataTaskListOtherAppReadAccess) -> ::windows::runtime::HRESULT, 101 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut UserDataTaskListOtherAppWriteAccess) -> ::windows::runtime::HRESULT, 102 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: UserDataTaskListOtherAppWriteAccess) -> ::windows::runtime::HRESULT, 103 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 104 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 105 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 106 #[cfg(not(feature = "Foundation"))] usize, 107 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 108 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, options: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 109 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, userdatatask: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 110 #[cfg(not(feature = "Foundation"))] usize, 111 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, userdatatask: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 112 #[cfg(not(feature = "Foundation"))] usize, 113 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, userdatataskid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 114 #[cfg(not(feature = "Foundation"))] usize, 115 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 116 #[cfg(not(feature = "Foundation"))] usize, 117 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 118 #[cfg(not(feature = "Foundation"))] usize, 119 ); 120 #[repr(transparent)] 121 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 122 #[doc(hidden)] 123 pub struct IUserDataTaskListLimitedWriteOperations(::windows::runtime::IInspectable); 124 unsafe impl ::windows::runtime::Interface for IUserDataTaskListLimitedWriteOperations { 125 type Vtable = IUserDataTaskListLimitedWriteOperations_abi; 126 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2057463794, 24696, 16771, [145, 158, 79, 41, 241, 156, 250, 233]); 127 } 128 #[repr(C)] 129 #[doc(hidden)] 130 pub struct IUserDataTaskListLimitedWriteOperations_abi( 131 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 132 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 133 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 134 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 135 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 136 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 137 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, userdatataskid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 138 #[cfg(not(feature = "Foundation"))] usize, 139 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, userdatatask: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 140 #[cfg(not(feature = "Foundation"))] usize, 141 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, userdatataskid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 142 #[cfg(not(feature = "Foundation"))] usize, 143 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, userdatataskid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 144 #[cfg(not(feature = "Foundation"))] usize, 145 ); 146 #[repr(transparent)] 147 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 148 #[doc(hidden)] 149 pub struct IUserDataTaskListSyncManager(::windows::runtime::IInspectable); 150 unsafe impl ::windows::runtime::Interface for IUserDataTaskListSyncManager { 151 type Vtable = IUserDataTaskListSyncManager_abi; 152 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2388204181, 7631, 18079, [147, 236, 186, 72, 187, 85, 60, 107]); 153 } 154 #[repr(C)] 155 #[doc(hidden)] 156 pub struct IUserDataTaskListSyncManager_abi( 157 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 158 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 159 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 160 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 161 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 162 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 163 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 164 #[cfg(not(feature = "Foundation"))] usize, 165 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 166 #[cfg(not(feature = "Foundation"))] usize, 167 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 168 #[cfg(not(feature = "Foundation"))] usize, 169 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 170 #[cfg(not(feature = "Foundation"))] usize, 171 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut UserDataTaskListSyncStatus) -> ::windows::runtime::HRESULT, 172 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: UserDataTaskListSyncStatus) -> ::windows::runtime::HRESULT, 173 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 174 #[cfg(not(feature = "Foundation"))] usize, 175 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 176 #[cfg(not(feature = "Foundation"))] usize, 177 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 178 #[cfg(not(feature = "Foundation"))] usize, 179 ); 180 #[repr(transparent)] 181 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 182 #[doc(hidden)] 183 pub struct IUserDataTaskManager(::windows::runtime::IInspectable); 184 unsafe impl ::windows::runtime::Interface for IUserDataTaskManager { 185 type Vtable = IUserDataTaskManager_abi; 186 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2219952404, 58891, 18601, [146, 17, 127, 184, 165, 108, 184, 76]); 187 } 188 #[repr(C)] 189 #[doc(hidden)] 190 pub struct IUserDataTaskManager_abi( 191 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 192 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 193 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 194 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 195 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 196 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 197 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, accesstype: UserDataTaskStoreAccessType, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 198 #[cfg(not(feature = "Foundation"))] usize, 199 #[cfg(feature = "System")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 200 #[cfg(not(feature = "System"))] usize, 201 ); 202 #[repr(transparent)] 203 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 204 #[doc(hidden)] 205 pub struct IUserDataTaskManagerStatics(::windows::runtime::IInspectable); 206 unsafe impl ::windows::runtime::Interface for IUserDataTaskManagerStatics { 207 type Vtable = IUserDataTaskManagerStatics_abi; 208 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3008707064, 50434, 18428, [168, 30, 16, 8, 131, 113, 157, 85]); 209 } 210 #[repr(C)] 211 #[doc(hidden)] 212 pub struct IUserDataTaskManagerStatics_abi( 213 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 214 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 215 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 216 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 217 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 218 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 219 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 220 #[cfg(feature = "System")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, user: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 221 #[cfg(not(feature = "System"))] usize, 222 ); 223 #[repr(transparent)] 224 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 225 #[doc(hidden)] 226 pub struct IUserDataTaskQueryOptions(::windows::runtime::IInspectable); 227 unsafe impl ::windows::runtime::Interface for IUserDataTaskQueryOptions { 228 type Vtable = IUserDataTaskQueryOptions_abi; 229 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2510235629, 37018, 19760, [140, 27, 51, 29, 143, 230, 103, 226]); 230 } 231 #[repr(C)] 232 #[doc(hidden)] 233 pub struct IUserDataTaskQueryOptions_abi( 234 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 235 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 236 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 237 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 238 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 239 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 240 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut UserDataTaskQuerySortProperty) -> ::windows::runtime::HRESULT, 241 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: UserDataTaskQuerySortProperty) -> ::windows::runtime::HRESULT, 242 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut UserDataTaskQueryKind) -> ::windows::runtime::HRESULT, 243 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: UserDataTaskQueryKind) -> ::windows::runtime::HRESULT, 244 ); 245 #[repr(transparent)] 246 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 247 #[doc(hidden)] 248 pub struct IUserDataTaskReader(::windows::runtime::IInspectable); 249 unsafe impl ::windows::runtime::Interface for IUserDataTaskReader { 250 type Vtable = IUserDataTaskReader_abi; 251 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(65439921, 19663, 17664, [136, 59, 231, 98, 144, 207, 237, 99]); 252 } 253 #[repr(C)] 254 #[doc(hidden)] 255 pub struct IUserDataTaskReader_abi( 256 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 257 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 258 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 259 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 260 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 261 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 262 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 263 #[cfg(not(feature = "Foundation"))] usize, 264 ); 265 #[repr(transparent)] 266 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 267 #[doc(hidden)] 268 pub struct IUserDataTaskRecurrenceProperties(::windows::runtime::IInspectable); 269 unsafe impl ::windows::runtime::Interface for IUserDataTaskRecurrenceProperties { 270 type Vtable = IUserDataTaskRecurrenceProperties_abi; 271 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1944027312, 10182, 16590, [177, 73, 156, 212, 20, 133, 166, 158]); 272 } 273 #[repr(C)] 274 #[doc(hidden)] 275 pub struct IUserDataTaskRecurrenceProperties_abi( 276 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 277 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 278 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 279 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 280 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 281 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 282 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut UserDataTaskRecurrenceUnit) -> ::windows::runtime::HRESULT, 283 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: UserDataTaskRecurrenceUnit) -> ::windows::runtime::HRESULT, 284 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 285 #[cfg(not(feature = "Foundation"))] usize, 286 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 287 #[cfg(not(feature = "Foundation"))] usize, 288 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 289 #[cfg(not(feature = "Foundation"))] usize, 290 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 291 #[cfg(not(feature = "Foundation"))] usize, 292 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut i32) -> ::windows::runtime::HRESULT, 293 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: i32) -> ::windows::runtime::HRESULT, 294 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 295 #[cfg(not(feature = "Foundation"))] usize, 296 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 297 #[cfg(not(feature = "Foundation"))] usize, 298 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 299 #[cfg(not(feature = "Foundation"))] usize, 300 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 301 #[cfg(not(feature = "Foundation"))] usize, 302 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 303 #[cfg(not(feature = "Foundation"))] usize, 304 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 305 #[cfg(not(feature = "Foundation"))] usize, 306 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 307 #[cfg(not(feature = "Foundation"))] usize, 308 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 309 #[cfg(not(feature = "Foundation"))] usize, 310 ); 311 #[repr(transparent)] 312 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 313 #[doc(hidden)] 314 pub struct IUserDataTaskRegenerationProperties(::windows::runtime::IInspectable); 315 unsafe impl ::windows::runtime::Interface for IUserDataTaskRegenerationProperties { 316 type Vtable = IUserDataTaskRegenerationProperties_abi; 317 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2460680199, 2318, 18180, [187, 92, 132, 252, 11, 13, 156, 49]); 318 } 319 #[repr(C)] 320 #[doc(hidden)] 321 pub struct IUserDataTaskRegenerationProperties_abi( 322 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 323 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 324 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 325 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 326 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 327 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 328 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut UserDataTaskRegenerationUnit) -> ::windows::runtime::HRESULT, 329 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: UserDataTaskRegenerationUnit) -> ::windows::runtime::HRESULT, 330 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 331 #[cfg(not(feature = "Foundation"))] usize, 332 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 333 #[cfg(not(feature = "Foundation"))] usize, 334 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 335 #[cfg(not(feature = "Foundation"))] usize, 336 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 337 #[cfg(not(feature = "Foundation"))] usize, 338 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut i32) -> ::windows::runtime::HRESULT, 339 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: i32) -> ::windows::runtime::HRESULT, 340 ); 341 #[repr(transparent)] 342 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 343 #[doc(hidden)] 344 pub struct IUserDataTaskStore(::windows::runtime::IInspectable); 345 unsafe impl ::windows::runtime::Interface for IUserDataTaskStore { 346 type Vtable = IUserDataTaskStore_abi; 347 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4033518768, 61915, 17850, [138, 98, 8, 96, 4, 192, 33, 61]); 348 } 349 #[repr(C)] 350 #[doc(hidden)] 351 pub struct IUserDataTaskStore_abi( 352 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 353 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 354 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 355 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 356 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 357 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 358 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, name: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 359 #[cfg(not(feature = "Foundation"))] usize, 360 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, name: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, userdataaccountid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 361 #[cfg(not(feature = "Foundation"))] usize, 362 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 363 #[cfg(not(all(feature = "Foundation", feature = "Foundation_Collections")))] usize, 364 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, tasklistid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 365 #[cfg(not(feature = "Foundation"))] usize, 366 ); 367 #[repr(transparent)] 368 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 369 pub struct UserDataTask(::windows::runtime::IInspectable); 370 impl UserDataTask { new() -> ::windows::runtime::Result<Self>371 pub fn new() -> ::windows::runtime::Result<Self> { 372 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 373 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>374 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 375 static mut SHARED: ::windows::runtime::FactoryCache<UserDataTask, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 376 unsafe { SHARED.call(callback) } 377 } Id(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>378 pub fn Id(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 379 let this = self; 380 unsafe { 381 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 382 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 383 } 384 } ListId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>385 pub fn ListId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 386 let this = self; 387 unsafe { 388 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 389 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 390 } 391 } RemoteId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>392 pub fn RemoteId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 393 let this = self; 394 unsafe { 395 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 396 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 397 } 398 } SetRemoteId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>399 pub fn SetRemoteId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 400 let this = self; 401 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 402 } 403 #[cfg(feature = "Foundation")] CompletedDate(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>>404 pub fn CompletedDate(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> { 405 let this = self; 406 unsafe { 407 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 408 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>(result__) 409 } 410 } 411 #[cfg(feature = "Foundation")] SetCompletedDate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()>412 pub fn SetCompletedDate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 413 let this = self; 414 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 415 } Details(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>416 pub fn Details(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 417 let this = self; 418 unsafe { 419 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 420 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 421 } 422 } SetDetails<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>423 pub fn SetDetails<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 424 let this = self; 425 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 426 } DetailsKind(&self) -> ::windows::runtime::Result<UserDataTaskDetailsKind>427 pub fn DetailsKind(&self) -> ::windows::runtime::Result<UserDataTaskDetailsKind> { 428 let this = self; 429 unsafe { 430 let mut result__: UserDataTaskDetailsKind = ::std::mem::zeroed(); 431 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskDetailsKind>(result__) 432 } 433 } SetDetailsKind(&self, value: UserDataTaskDetailsKind) -> ::windows::runtime::Result<()>434 pub fn SetDetailsKind(&self, value: UserDataTaskDetailsKind) -> ::windows::runtime::Result<()> { 435 let this = self; 436 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value).ok() } 437 } 438 #[cfg(feature = "Foundation")] DueDate(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>>439 pub fn DueDate(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> { 440 let this = self; 441 unsafe { 442 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 443 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>(result__) 444 } 445 } 446 #[cfg(feature = "Foundation")] SetDueDate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()>447 pub fn SetDueDate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 448 let this = self; 449 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 450 } Kind(&self) -> ::windows::runtime::Result<UserDataTaskKind>451 pub fn Kind(&self) -> ::windows::runtime::Result<UserDataTaskKind> { 452 let this = self; 453 unsafe { 454 let mut result__: UserDataTaskKind = ::std::mem::zeroed(); 455 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskKind>(result__) 456 } 457 } Priority(&self) -> ::windows::runtime::Result<UserDataTaskPriority>458 pub fn Priority(&self) -> ::windows::runtime::Result<UserDataTaskPriority> { 459 let this = self; 460 unsafe { 461 let mut result__: UserDataTaskPriority = ::std::mem::zeroed(); 462 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskPriority>(result__) 463 } 464 } SetPriority(&self, value: UserDataTaskPriority) -> ::windows::runtime::Result<()>465 pub fn SetPriority(&self, value: UserDataTaskPriority) -> ::windows::runtime::Result<()> { 466 let this = self; 467 unsafe { (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), value).ok() } 468 } RecurrenceProperties(&self) -> ::windows::runtime::Result<UserDataTaskRecurrenceProperties>469 pub fn RecurrenceProperties(&self) -> ::windows::runtime::Result<UserDataTaskRecurrenceProperties> { 470 let this = self; 471 unsafe { 472 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 473 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskRecurrenceProperties>(result__) 474 } 475 } SetRecurrenceProperties<'a, Param0: ::windows::runtime::IntoParam<'a, UserDataTaskRecurrenceProperties>>(&self, value: Param0) -> ::windows::runtime::Result<()>476 pub fn SetRecurrenceProperties<'a, Param0: ::windows::runtime::IntoParam<'a, UserDataTaskRecurrenceProperties>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 477 let this = self; 478 unsafe { (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 479 } RegenerationProperties(&self) -> ::windows::runtime::Result<UserDataTaskRegenerationProperties>480 pub fn RegenerationProperties(&self) -> ::windows::runtime::Result<UserDataTaskRegenerationProperties> { 481 let this = self; 482 unsafe { 483 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 484 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskRegenerationProperties>(result__) 485 } 486 } SetRegenerationProperties<'a, Param0: ::windows::runtime::IntoParam<'a, UserDataTaskRegenerationProperties>>(&self, value: Param0) -> ::windows::runtime::Result<()>487 pub fn SetRegenerationProperties<'a, Param0: ::windows::runtime::IntoParam<'a, UserDataTaskRegenerationProperties>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 488 let this = self; 489 unsafe { (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 490 } 491 #[cfg(feature = "Foundation")] Reminder(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>>492 pub fn Reminder(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> { 493 let this = self; 494 unsafe { 495 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 496 (::windows::runtime::Interface::vtable(this).25)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>(result__) 497 } 498 } 499 #[cfg(feature = "Foundation")] SetReminder<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()>500 pub fn SetReminder<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 501 let this = self; 502 unsafe { (::windows::runtime::Interface::vtable(this).26)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 503 } Sensitivity(&self) -> ::windows::runtime::Result<UserDataTaskSensitivity>504 pub fn Sensitivity(&self) -> ::windows::runtime::Result<UserDataTaskSensitivity> { 505 let this = self; 506 unsafe { 507 let mut result__: UserDataTaskSensitivity = ::std::mem::zeroed(); 508 (::windows::runtime::Interface::vtable(this).27)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskSensitivity>(result__) 509 } 510 } SetSensitivity(&self, value: UserDataTaskSensitivity) -> ::windows::runtime::Result<()>511 pub fn SetSensitivity(&self, value: UserDataTaskSensitivity) -> ::windows::runtime::Result<()> { 512 let this = self; 513 unsafe { (::windows::runtime::Interface::vtable(this).28)(::std::mem::transmute_copy(this), value).ok() } 514 } Subject(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>515 pub fn Subject(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 516 let this = self; 517 unsafe { 518 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 519 (::windows::runtime::Interface::vtable(this).29)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 520 } 521 } SetSubject<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>522 pub fn SetSubject<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 523 let this = self; 524 unsafe { (::windows::runtime::Interface::vtable(this).30)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 525 } 526 #[cfg(feature = "Foundation")] StartDate(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>>527 pub fn StartDate(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> { 528 let this = self; 529 unsafe { 530 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 531 (::windows::runtime::Interface::vtable(this).31)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>(result__) 532 } 533 } 534 #[cfg(feature = "Foundation")] SetStartDate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()>535 pub fn SetStartDate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 536 let this = self; 537 unsafe { (::windows::runtime::Interface::vtable(this).32)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 538 } 539 } 540 unsafe impl ::windows::runtime::RuntimeType for UserDataTask { 541 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.UserDataTasks.UserDataTask;{7c6585d1-e0d4-4f99-aee2-bc2d5ddadf4c})"); 542 } 543 unsafe impl ::windows::runtime::Interface for UserDataTask { 544 type Vtable = IUserDataTask_abi; 545 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2087028177, 57556, 20377, [174, 226, 188, 45, 93, 218, 223, 76]); 546 } 547 impl ::windows::runtime::RuntimeName for UserDataTask { 548 const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTask"; 549 } 550 impl ::std::convert::From<UserDataTask> for ::windows::runtime::IUnknown { from(value: UserDataTask) -> Self551 fn from(value: UserDataTask) -> Self { 552 unsafe { ::std::mem::transmute(value) } 553 } 554 } 555 impl ::std::convert::From<&UserDataTask> for ::windows::runtime::IUnknown { from(value: &UserDataTask) -> Self556 fn from(value: &UserDataTask) -> Self { 557 ::std::convert::From::from(::std::clone::Clone::clone(value)) 558 } 559 } 560 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for UserDataTask { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>561 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 562 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 563 } 564 } 565 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &UserDataTask { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>566 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 567 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 568 } 569 } 570 impl ::std::convert::From<UserDataTask> for ::windows::runtime::IInspectable { from(value: UserDataTask) -> Self571 fn from(value: UserDataTask) -> Self { 572 value.0 573 } 574 } 575 impl ::std::convert::From<&UserDataTask> for ::windows::runtime::IInspectable { from(value: &UserDataTask) -> Self576 fn from(value: &UserDataTask) -> Self { 577 value.0.clone() 578 } 579 } 580 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for UserDataTask { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>581 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 582 ::windows::runtime::Param::Owned(self.0) 583 } 584 } 585 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a UserDataTask { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>586 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 587 ::windows::runtime::Param::Borrowed(&self.0) 588 } 589 } 590 unsafe impl ::std::marker::Send for UserDataTask {} 591 unsafe impl ::std::marker::Sync for UserDataTask {} 592 #[repr(transparent)] 593 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 594 pub struct UserDataTaskBatch(::windows::runtime::IInspectable); 595 impl UserDataTaskBatch { 596 #[cfg(feature = "Foundation_Collections")] Tasks(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<UserDataTask>>597 pub fn Tasks(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<UserDataTask>> { 598 let this = self; 599 unsafe { 600 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 601 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<UserDataTask>>(result__) 602 } 603 } 604 } 605 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskBatch { 606 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.UserDataTasks.UserDataTaskBatch;{382da5fe-20b5-431c-8f42-a5d292ec930c})"); 607 } 608 unsafe impl ::windows::runtime::Interface for UserDataTaskBatch { 609 type Vtable = IUserDataTaskBatch_abi; 610 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(942515710, 8373, 17180, [143, 66, 165, 210, 146, 236, 147, 12]); 611 } 612 impl ::windows::runtime::RuntimeName for UserDataTaskBatch { 613 const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskBatch"; 614 } 615 impl ::std::convert::From<UserDataTaskBatch> for ::windows::runtime::IUnknown { from(value: UserDataTaskBatch) -> Self616 fn from(value: UserDataTaskBatch) -> Self { 617 unsafe { ::std::mem::transmute(value) } 618 } 619 } 620 impl ::std::convert::From<&UserDataTaskBatch> for ::windows::runtime::IUnknown { from(value: &UserDataTaskBatch) -> Self621 fn from(value: &UserDataTaskBatch) -> Self { 622 ::std::convert::From::from(::std::clone::Clone::clone(value)) 623 } 624 } 625 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for UserDataTaskBatch { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>626 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 627 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 628 } 629 } 630 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &UserDataTaskBatch { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>631 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 632 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 633 } 634 } 635 impl ::std::convert::From<UserDataTaskBatch> for ::windows::runtime::IInspectable { from(value: UserDataTaskBatch) -> Self636 fn from(value: UserDataTaskBatch) -> Self { 637 value.0 638 } 639 } 640 impl ::std::convert::From<&UserDataTaskBatch> for ::windows::runtime::IInspectable { from(value: &UserDataTaskBatch) -> Self641 fn from(value: &UserDataTaskBatch) -> Self { 642 value.0.clone() 643 } 644 } 645 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for UserDataTaskBatch { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>646 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 647 ::windows::runtime::Param::Owned(self.0) 648 } 649 } 650 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a UserDataTaskBatch { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>651 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 652 ::windows::runtime::Param::Borrowed(&self.0) 653 } 654 } 655 unsafe impl ::std::marker::Send for UserDataTaskBatch {} 656 unsafe impl ::std::marker::Sync for UserDataTaskBatch {} 657 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 658 #[repr(transparent)] 659 pub struct UserDataTaskDaysOfWeek(pub u32); 660 impl UserDataTaskDaysOfWeek { 661 pub const None: UserDataTaskDaysOfWeek = UserDataTaskDaysOfWeek(0u32); 662 pub const Sunday: UserDataTaskDaysOfWeek = UserDataTaskDaysOfWeek(1u32); 663 pub const Monday: UserDataTaskDaysOfWeek = UserDataTaskDaysOfWeek(2u32); 664 pub const Tuesday: UserDataTaskDaysOfWeek = UserDataTaskDaysOfWeek(4u32); 665 pub const Wednesday: UserDataTaskDaysOfWeek = UserDataTaskDaysOfWeek(8u32); 666 pub const Thursday: UserDataTaskDaysOfWeek = UserDataTaskDaysOfWeek(16u32); 667 pub const Friday: UserDataTaskDaysOfWeek = UserDataTaskDaysOfWeek(32u32); 668 pub const Saturday: UserDataTaskDaysOfWeek = UserDataTaskDaysOfWeek(64u32); 669 } 670 impl ::std::convert::From<u32> for UserDataTaskDaysOfWeek { from(value: u32) -> Self671 fn from(value: u32) -> Self { 672 Self(value) 673 } 674 } 675 unsafe impl ::windows::runtime::Abi for UserDataTaskDaysOfWeek { 676 type Abi = Self; 677 type DefaultType = Self; 678 } 679 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskDaysOfWeek { 680 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskDaysOfWeek;u4)"); 681 } 682 impl ::std::ops::BitOr for UserDataTaskDaysOfWeek { 683 type Output = Self; bitor(self, rhs: Self) -> Self684 fn bitor(self, rhs: Self) -> Self { 685 Self(self.0 | rhs.0) 686 } 687 } 688 impl ::std::ops::BitAnd for UserDataTaskDaysOfWeek { 689 type Output = Self; bitand(self, rhs: Self) -> Self690 fn bitand(self, rhs: Self) -> Self { 691 Self(self.0 & rhs.0) 692 } 693 } 694 impl ::std::ops::BitOrAssign for UserDataTaskDaysOfWeek { bitor_assign(&mut self, rhs: Self)695 fn bitor_assign(&mut self, rhs: Self) { 696 self.0.bitor_assign(rhs.0) 697 } 698 } 699 impl ::std::ops::BitAndAssign for UserDataTaskDaysOfWeek { bitand_assign(&mut self, rhs: Self)700 fn bitand_assign(&mut self, rhs: Self) { 701 self.0.bitand_assign(rhs.0) 702 } 703 } 704 impl ::std::ops::Not for UserDataTaskDaysOfWeek { 705 type Output = Self; not(self) -> Self706 fn not(self) -> Self { 707 Self(self.0.not()) 708 } 709 } 710 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 711 #[repr(transparent)] 712 pub struct UserDataTaskDetailsKind(pub i32); 713 impl UserDataTaskDetailsKind { 714 pub const PlainText: UserDataTaskDetailsKind = UserDataTaskDetailsKind(0i32); 715 pub const Html: UserDataTaskDetailsKind = UserDataTaskDetailsKind(1i32); 716 } 717 impl ::std::convert::From<i32> for UserDataTaskDetailsKind { from(value: i32) -> Self718 fn from(value: i32) -> Self { 719 Self(value) 720 } 721 } 722 unsafe impl ::windows::runtime::Abi for UserDataTaskDetailsKind { 723 type Abi = Self; 724 type DefaultType = Self; 725 } 726 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskDetailsKind { 727 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskDetailsKind;i4)"); 728 } 729 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 730 #[repr(transparent)] 731 pub struct UserDataTaskKind(pub i32); 732 impl UserDataTaskKind { 733 pub const Single: UserDataTaskKind = UserDataTaskKind(0i32); 734 pub const Recurring: UserDataTaskKind = UserDataTaskKind(1i32); 735 pub const Regenerating: UserDataTaskKind = UserDataTaskKind(2i32); 736 } 737 impl ::std::convert::From<i32> for UserDataTaskKind { from(value: i32) -> Self738 fn from(value: i32) -> Self { 739 Self(value) 740 } 741 } 742 unsafe impl ::windows::runtime::Abi for UserDataTaskKind { 743 type Abi = Self; 744 type DefaultType = Self; 745 } 746 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskKind { 747 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskKind;i4)"); 748 } 749 #[repr(transparent)] 750 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 751 pub struct UserDataTaskList(::windows::runtime::IInspectable); 752 impl UserDataTaskList { Id(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>753 pub fn Id(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 754 let this = self; 755 unsafe { 756 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 757 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 758 } 759 } UserDataAccountId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>760 pub fn UserDataAccountId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 761 let this = self; 762 unsafe { 763 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 764 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 765 } 766 } DisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>767 pub fn DisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 768 let this = self; 769 unsafe { 770 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 771 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 772 } 773 } SetDisplayName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>774 pub fn SetDisplayName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 775 let this = self; 776 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 777 } SourceDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>778 pub fn SourceDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 779 let this = self; 780 unsafe { 781 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 782 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 783 } 784 } OtherAppReadAccess(&self) -> ::windows::runtime::Result<UserDataTaskListOtherAppReadAccess>785 pub fn OtherAppReadAccess(&self) -> ::windows::runtime::Result<UserDataTaskListOtherAppReadAccess> { 786 let this = self; 787 unsafe { 788 let mut result__: UserDataTaskListOtherAppReadAccess = ::std::mem::zeroed(); 789 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskListOtherAppReadAccess>(result__) 790 } 791 } SetOtherAppReadAccess(&self, value: UserDataTaskListOtherAppReadAccess) -> ::windows::runtime::Result<()>792 pub fn SetOtherAppReadAccess(&self, value: UserDataTaskListOtherAppReadAccess) -> ::windows::runtime::Result<()> { 793 let this = self; 794 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), value).ok() } 795 } OtherAppWriteAccess(&self) -> ::windows::runtime::Result<UserDataTaskListOtherAppWriteAccess>796 pub fn OtherAppWriteAccess(&self) -> ::windows::runtime::Result<UserDataTaskListOtherAppWriteAccess> { 797 let this = self; 798 unsafe { 799 let mut result__: UserDataTaskListOtherAppWriteAccess = ::std::mem::zeroed(); 800 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskListOtherAppWriteAccess>(result__) 801 } 802 } SetOtherAppWriteAccess(&self, value: UserDataTaskListOtherAppWriteAccess) -> ::windows::runtime::Result<()>803 pub fn SetOtherAppWriteAccess(&self, value: UserDataTaskListOtherAppWriteAccess) -> ::windows::runtime::Result<()> { 804 let this = self; 805 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), value).ok() } 806 } LimitedWriteOperations(&self) -> ::windows::runtime::Result<UserDataTaskListLimitedWriteOperations>807 pub fn LimitedWriteOperations(&self) -> ::windows::runtime::Result<UserDataTaskListLimitedWriteOperations> { 808 let this = self; 809 unsafe { 810 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 811 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskListLimitedWriteOperations>(result__) 812 } 813 } SyncManager(&self) -> ::windows::runtime::Result<UserDataTaskListSyncManager>814 pub fn SyncManager(&self) -> ::windows::runtime::Result<UserDataTaskListSyncManager> { 815 let this = self; 816 unsafe { 817 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 818 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskListSyncManager>(result__) 819 } 820 } 821 #[cfg(feature = "Foundation")] RegisterSyncManagerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>822 pub fn RegisterSyncManagerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 823 let this = self; 824 unsafe { 825 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 826 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 827 } 828 } GetTaskReader(&self) -> ::windows::runtime::Result<UserDataTaskReader>829 pub fn GetTaskReader(&self) -> ::windows::runtime::Result<UserDataTaskReader> { 830 let this = self; 831 unsafe { 832 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 833 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskReader>(result__) 834 } 835 } GetTaskReaderWithOptions<'a, Param0: ::windows::runtime::IntoParam<'a, UserDataTaskQueryOptions>>(&self, options: Param0) -> ::windows::runtime::Result<UserDataTaskReader>836 pub fn GetTaskReaderWithOptions<'a, Param0: ::windows::runtime::IntoParam<'a, UserDataTaskQueryOptions>>(&self, options: Param0) -> ::windows::runtime::Result<UserDataTaskReader> { 837 let this = self; 838 unsafe { 839 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 840 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), options.into_param().abi(), &mut result__).from_abi::<UserDataTaskReader>(result__) 841 } 842 } 843 #[cfg(feature = "Foundation")] GetTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, userdatatask: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTask>>844 pub fn GetTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, userdatatask: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTask>> { 845 let this = self; 846 unsafe { 847 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 848 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), userdatatask.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<UserDataTask>>(result__) 849 } 850 } 851 #[cfg(feature = "Foundation")] SaveTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, UserDataTask>>(&self, userdatatask: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>852 pub fn SaveTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, UserDataTask>>(&self, userdatatask: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 853 let this = self; 854 unsafe { 855 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 856 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), userdatatask.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 857 } 858 } 859 #[cfg(feature = "Foundation")] DeleteTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, userdatataskid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>860 pub fn DeleteTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, userdatataskid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 861 let this = self; 862 unsafe { 863 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 864 (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), userdatataskid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 865 } 866 } 867 #[cfg(feature = "Foundation")] DeleteAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>868 pub fn DeleteAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 869 let this = self; 870 unsafe { 871 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 872 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 873 } 874 } 875 #[cfg(feature = "Foundation")] SaveAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>876 pub fn SaveAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 877 let this = self; 878 unsafe { 879 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 880 (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 881 } 882 } 883 } 884 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskList { 885 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.UserDataTasks.UserDataTaskList;{49412e39-7c1d-4df1-bed3-314b7cbf5e4e})"); 886 } 887 unsafe impl ::windows::runtime::Interface for UserDataTaskList { 888 type Vtable = IUserDataTaskList_abi; 889 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1229008441, 31773, 19953, [190, 211, 49, 75, 124, 191, 94, 78]); 890 } 891 impl ::windows::runtime::RuntimeName for UserDataTaskList { 892 const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskList"; 893 } 894 impl ::std::convert::From<UserDataTaskList> for ::windows::runtime::IUnknown { from(value: UserDataTaskList) -> Self895 fn from(value: UserDataTaskList) -> Self { 896 unsafe { ::std::mem::transmute(value) } 897 } 898 } 899 impl ::std::convert::From<&UserDataTaskList> for ::windows::runtime::IUnknown { from(value: &UserDataTaskList) -> Self900 fn from(value: &UserDataTaskList) -> Self { 901 ::std::convert::From::from(::std::clone::Clone::clone(value)) 902 } 903 } 904 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for UserDataTaskList { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>905 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 906 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 907 } 908 } 909 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &UserDataTaskList { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>910 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 911 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 912 } 913 } 914 impl ::std::convert::From<UserDataTaskList> for ::windows::runtime::IInspectable { from(value: UserDataTaskList) -> Self915 fn from(value: UserDataTaskList) -> Self { 916 value.0 917 } 918 } 919 impl ::std::convert::From<&UserDataTaskList> for ::windows::runtime::IInspectable { from(value: &UserDataTaskList) -> Self920 fn from(value: &UserDataTaskList) -> Self { 921 value.0.clone() 922 } 923 } 924 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for UserDataTaskList { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>925 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 926 ::windows::runtime::Param::Owned(self.0) 927 } 928 } 929 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a UserDataTaskList { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>930 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 931 ::windows::runtime::Param::Borrowed(&self.0) 932 } 933 } 934 unsafe impl ::std::marker::Send for UserDataTaskList {} 935 unsafe impl ::std::marker::Sync for UserDataTaskList {} 936 #[repr(transparent)] 937 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 938 pub struct UserDataTaskListLimitedWriteOperations(::windows::runtime::IInspectable); 939 impl UserDataTaskListLimitedWriteOperations { 940 #[cfg(feature = "Foundation")] TryCompleteTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, userdatataskid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>941 pub fn TryCompleteTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, userdatataskid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>> { 942 let this = self; 943 unsafe { 944 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 945 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), userdatataskid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>(result__) 946 } 947 } 948 #[cfg(feature = "Foundation")] TryCreateOrUpdateTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, UserDataTask>>(&self, userdatatask: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>949 pub fn TryCreateOrUpdateTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, UserDataTask>>(&self, userdatatask: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 950 let this = self; 951 unsafe { 952 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 953 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), userdatatask.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 954 } 955 } 956 #[cfg(feature = "Foundation")] TryDeleteTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, userdatataskid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>957 pub fn TryDeleteTaskAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, userdatataskid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 958 let this = self; 959 unsafe { 960 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 961 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), userdatataskid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 962 } 963 } 964 #[cfg(feature = "Foundation")] TrySkipOccurrenceAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, userdatataskid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>965 pub fn TrySkipOccurrenceAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, userdatataskid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 966 let this = self; 967 unsafe { 968 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 969 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), userdatataskid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 970 } 971 } 972 } 973 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskListLimitedWriteOperations { 974 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.UserDataTasks.UserDataTaskListLimitedWriteOperations;{7aa267f2-6078-4183-919e-4f29f19cfae9})"); 975 } 976 unsafe impl ::windows::runtime::Interface for UserDataTaskListLimitedWriteOperations { 977 type Vtable = IUserDataTaskListLimitedWriteOperations_abi; 978 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2057463794, 24696, 16771, [145, 158, 79, 41, 241, 156, 250, 233]); 979 } 980 impl ::windows::runtime::RuntimeName for UserDataTaskListLimitedWriteOperations { 981 const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskListLimitedWriteOperations"; 982 } 983 impl ::std::convert::From<UserDataTaskListLimitedWriteOperations> for ::windows::runtime::IUnknown { from(value: UserDataTaskListLimitedWriteOperations) -> Self984 fn from(value: UserDataTaskListLimitedWriteOperations) -> Self { 985 unsafe { ::std::mem::transmute(value) } 986 } 987 } 988 impl ::std::convert::From<&UserDataTaskListLimitedWriteOperations> for ::windows::runtime::IUnknown { from(value: &UserDataTaskListLimitedWriteOperations) -> Self989 fn from(value: &UserDataTaskListLimitedWriteOperations) -> Self { 990 ::std::convert::From::from(::std::clone::Clone::clone(value)) 991 } 992 } 993 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for UserDataTaskListLimitedWriteOperations { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>994 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 995 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 996 } 997 } 998 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &UserDataTaskListLimitedWriteOperations { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>999 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1000 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1001 } 1002 } 1003 impl ::std::convert::From<UserDataTaskListLimitedWriteOperations> for ::windows::runtime::IInspectable { from(value: UserDataTaskListLimitedWriteOperations) -> Self1004 fn from(value: UserDataTaskListLimitedWriteOperations) -> Self { 1005 value.0 1006 } 1007 } 1008 impl ::std::convert::From<&UserDataTaskListLimitedWriteOperations> for ::windows::runtime::IInspectable { from(value: &UserDataTaskListLimitedWriteOperations) -> Self1009 fn from(value: &UserDataTaskListLimitedWriteOperations) -> Self { 1010 value.0.clone() 1011 } 1012 } 1013 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for UserDataTaskListLimitedWriteOperations { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1014 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1015 ::windows::runtime::Param::Owned(self.0) 1016 } 1017 } 1018 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a UserDataTaskListLimitedWriteOperations { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1019 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1020 ::windows::runtime::Param::Borrowed(&self.0) 1021 } 1022 } 1023 unsafe impl ::std::marker::Send for UserDataTaskListLimitedWriteOperations {} 1024 unsafe impl ::std::marker::Sync for UserDataTaskListLimitedWriteOperations {} 1025 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1026 #[repr(transparent)] 1027 pub struct UserDataTaskListOtherAppReadAccess(pub i32); 1028 impl UserDataTaskListOtherAppReadAccess { 1029 pub const Full: UserDataTaskListOtherAppReadAccess = UserDataTaskListOtherAppReadAccess(0i32); 1030 pub const SystemOnly: UserDataTaskListOtherAppReadAccess = UserDataTaskListOtherAppReadAccess(1i32); 1031 pub const None: UserDataTaskListOtherAppReadAccess = UserDataTaskListOtherAppReadAccess(2i32); 1032 } 1033 impl ::std::convert::From<i32> for UserDataTaskListOtherAppReadAccess { from(value: i32) -> Self1034 fn from(value: i32) -> Self { 1035 Self(value) 1036 } 1037 } 1038 unsafe impl ::windows::runtime::Abi for UserDataTaskListOtherAppReadAccess { 1039 type Abi = Self; 1040 type DefaultType = Self; 1041 } 1042 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskListOtherAppReadAccess { 1043 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskListOtherAppReadAccess;i4)"); 1044 } 1045 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1046 #[repr(transparent)] 1047 pub struct UserDataTaskListOtherAppWriteAccess(pub i32); 1048 impl UserDataTaskListOtherAppWriteAccess { 1049 pub const Limited: UserDataTaskListOtherAppWriteAccess = UserDataTaskListOtherAppWriteAccess(0i32); 1050 pub const None: UserDataTaskListOtherAppWriteAccess = UserDataTaskListOtherAppWriteAccess(1i32); 1051 } 1052 impl ::std::convert::From<i32> for UserDataTaskListOtherAppWriteAccess { from(value: i32) -> Self1053 fn from(value: i32) -> Self { 1054 Self(value) 1055 } 1056 } 1057 unsafe impl ::windows::runtime::Abi for UserDataTaskListOtherAppWriteAccess { 1058 type Abi = Self; 1059 type DefaultType = Self; 1060 } 1061 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskListOtherAppWriteAccess { 1062 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskListOtherAppWriteAccess;i4)"); 1063 } 1064 #[repr(transparent)] 1065 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1066 pub struct UserDataTaskListSyncManager(::windows::runtime::IInspectable); 1067 impl UserDataTaskListSyncManager { 1068 #[cfg(feature = "Foundation")] LastAttemptedSyncTime(&self) -> ::windows::runtime::Result<super::super::Foundation::DateTime>1069 pub fn LastAttemptedSyncTime(&self) -> ::windows::runtime::Result<super::super::Foundation::DateTime> { 1070 let this = self; 1071 unsafe { 1072 let mut result__: super::super::Foundation::DateTime = ::std::mem::zeroed(); 1073 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::DateTime>(result__) 1074 } 1075 } 1076 #[cfg(feature = "Foundation")] SetLastAttemptedSyncTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::DateTime>>(&self, value: Param0) -> ::windows::runtime::Result<()>1077 pub fn SetLastAttemptedSyncTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::DateTime>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1078 let this = self; 1079 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1080 } 1081 #[cfg(feature = "Foundation")] LastSuccessfulSyncTime(&self) -> ::windows::runtime::Result<super::super::Foundation::DateTime>1082 pub fn LastSuccessfulSyncTime(&self) -> ::windows::runtime::Result<super::super::Foundation::DateTime> { 1083 let this = self; 1084 unsafe { 1085 let mut result__: super::super::Foundation::DateTime = ::std::mem::zeroed(); 1086 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::DateTime>(result__) 1087 } 1088 } 1089 #[cfg(feature = "Foundation")] SetLastSuccessfulSyncTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::DateTime>>(&self, value: Param0) -> ::windows::runtime::Result<()>1090 pub fn SetLastSuccessfulSyncTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::DateTime>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1091 let this = self; 1092 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1093 } Status(&self) -> ::windows::runtime::Result<UserDataTaskListSyncStatus>1094 pub fn Status(&self) -> ::windows::runtime::Result<UserDataTaskListSyncStatus> { 1095 let this = self; 1096 unsafe { 1097 let mut result__: UserDataTaskListSyncStatus = ::std::mem::zeroed(); 1098 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskListSyncStatus>(result__) 1099 } 1100 } SetStatus(&self, value: UserDataTaskListSyncStatus) -> ::windows::runtime::Result<()>1101 pub fn SetStatus(&self, value: UserDataTaskListSyncStatus) -> ::windows::runtime::Result<()> { 1102 let this = self; 1103 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 1104 } 1105 #[cfg(feature = "Foundation")] SyncAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>1106 pub fn SyncAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 1107 let this = self; 1108 unsafe { 1109 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1110 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 1111 } 1112 } 1113 #[cfg(feature = "Foundation")] SyncStatusChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<UserDataTaskListSyncManager, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>1114 pub fn SyncStatusChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<UserDataTaskListSyncManager, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 1115 let this = self; 1116 unsafe { 1117 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1118 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 1119 } 1120 } 1121 #[cfg(feature = "Foundation")] RemoveSyncStatusChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1122 pub fn RemoveSyncStatusChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1123 let this = self; 1124 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1125 } 1126 } 1127 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskListSyncManager { 1128 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.UserDataTasks.UserDataTaskListSyncManager;{8e591a95-1dcf-469f-93ec-ba48bb553c6b})"); 1129 } 1130 unsafe impl ::windows::runtime::Interface for UserDataTaskListSyncManager { 1131 type Vtable = IUserDataTaskListSyncManager_abi; 1132 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2388204181, 7631, 18079, [147, 236, 186, 72, 187, 85, 60, 107]); 1133 } 1134 impl ::windows::runtime::RuntimeName for UserDataTaskListSyncManager { 1135 const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskListSyncManager"; 1136 } 1137 impl ::std::convert::From<UserDataTaskListSyncManager> for ::windows::runtime::IUnknown { from(value: UserDataTaskListSyncManager) -> Self1138 fn from(value: UserDataTaskListSyncManager) -> Self { 1139 unsafe { ::std::mem::transmute(value) } 1140 } 1141 } 1142 impl ::std::convert::From<&UserDataTaskListSyncManager> for ::windows::runtime::IUnknown { from(value: &UserDataTaskListSyncManager) -> Self1143 fn from(value: &UserDataTaskListSyncManager) -> Self { 1144 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1145 } 1146 } 1147 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for UserDataTaskListSyncManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1148 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1149 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1150 } 1151 } 1152 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &UserDataTaskListSyncManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1153 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1154 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1155 } 1156 } 1157 impl ::std::convert::From<UserDataTaskListSyncManager> for ::windows::runtime::IInspectable { from(value: UserDataTaskListSyncManager) -> Self1158 fn from(value: UserDataTaskListSyncManager) -> Self { 1159 value.0 1160 } 1161 } 1162 impl ::std::convert::From<&UserDataTaskListSyncManager> for ::windows::runtime::IInspectable { from(value: &UserDataTaskListSyncManager) -> Self1163 fn from(value: &UserDataTaskListSyncManager) -> Self { 1164 value.0.clone() 1165 } 1166 } 1167 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for UserDataTaskListSyncManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1168 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1169 ::windows::runtime::Param::Owned(self.0) 1170 } 1171 } 1172 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a UserDataTaskListSyncManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1173 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1174 ::windows::runtime::Param::Borrowed(&self.0) 1175 } 1176 } 1177 unsafe impl ::std::marker::Send for UserDataTaskListSyncManager {} 1178 unsafe impl ::std::marker::Sync for UserDataTaskListSyncManager {} 1179 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1180 #[repr(transparent)] 1181 pub struct UserDataTaskListSyncStatus(pub i32); 1182 impl UserDataTaskListSyncStatus { 1183 pub const Idle: UserDataTaskListSyncStatus = UserDataTaskListSyncStatus(0i32); 1184 pub const Syncing: UserDataTaskListSyncStatus = UserDataTaskListSyncStatus(1i32); 1185 pub const UpToDate: UserDataTaskListSyncStatus = UserDataTaskListSyncStatus(2i32); 1186 pub const AuthenticationError: UserDataTaskListSyncStatus = UserDataTaskListSyncStatus(3i32); 1187 pub const PolicyError: UserDataTaskListSyncStatus = UserDataTaskListSyncStatus(4i32); 1188 pub const UnknownError: UserDataTaskListSyncStatus = UserDataTaskListSyncStatus(5i32); 1189 } 1190 impl ::std::convert::From<i32> for UserDataTaskListSyncStatus { from(value: i32) -> Self1191 fn from(value: i32) -> Self { 1192 Self(value) 1193 } 1194 } 1195 unsafe impl ::windows::runtime::Abi for UserDataTaskListSyncStatus { 1196 type Abi = Self; 1197 type DefaultType = Self; 1198 } 1199 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskListSyncStatus { 1200 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskListSyncStatus;i4)"); 1201 } 1202 #[repr(transparent)] 1203 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1204 pub struct UserDataTaskManager(::windows::runtime::IInspectable); 1205 impl UserDataTaskManager { 1206 #[cfg(feature = "Foundation")] RequestStoreAsync(&self, accesstype: UserDataTaskStoreAccessType) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTaskStore>>1207 pub fn RequestStoreAsync(&self, accesstype: UserDataTaskStoreAccessType) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTaskStore>> { 1208 let this = self; 1209 unsafe { 1210 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1211 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), accesstype, &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<UserDataTaskStore>>(result__) 1212 } 1213 } 1214 #[cfg(feature = "System")] User(&self) -> ::windows::runtime::Result<super::super::System::User>1215 pub fn User(&self) -> ::windows::runtime::Result<super::super::System::User> { 1216 let this = self; 1217 unsafe { 1218 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1219 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::System::User>(result__) 1220 } 1221 } GetDefault() -> ::windows::runtime::Result<UserDataTaskManager>1222 pub fn GetDefault() -> ::windows::runtime::Result<UserDataTaskManager> { 1223 Self::IUserDataTaskManagerStatics(|this| unsafe { 1224 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1225 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskManager>(result__) 1226 }) 1227 } 1228 #[cfg(feature = "System")] GetForUser<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::System::User>>(user: Param0) -> ::windows::runtime::Result<UserDataTaskManager>1229 pub fn GetForUser<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::System::User>>(user: Param0) -> ::windows::runtime::Result<UserDataTaskManager> { 1230 Self::IUserDataTaskManagerStatics(|this| unsafe { 1231 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1232 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), user.into_param().abi(), &mut result__).from_abi::<UserDataTaskManager>(result__) 1233 }) 1234 } IUserDataTaskManagerStatics<R, F: FnOnce(&IUserDataTaskManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1235 pub fn IUserDataTaskManagerStatics<R, F: FnOnce(&IUserDataTaskManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1236 static mut SHARED: ::windows::runtime::FactoryCache<UserDataTaskManager, IUserDataTaskManagerStatics> = ::windows::runtime::FactoryCache::new(); 1237 unsafe { SHARED.call(callback) } 1238 } 1239 } 1240 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskManager { 1241 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.UserDataTasks.UserDataTaskManager;{8451c914-e60b-48a9-9211-7fb8a56cb84c})"); 1242 } 1243 unsafe impl ::windows::runtime::Interface for UserDataTaskManager { 1244 type Vtable = IUserDataTaskManager_abi; 1245 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2219952404, 58891, 18601, [146, 17, 127, 184, 165, 108, 184, 76]); 1246 } 1247 impl ::windows::runtime::RuntimeName for UserDataTaskManager { 1248 const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskManager"; 1249 } 1250 impl ::std::convert::From<UserDataTaskManager> for ::windows::runtime::IUnknown { from(value: UserDataTaskManager) -> Self1251 fn from(value: UserDataTaskManager) -> Self { 1252 unsafe { ::std::mem::transmute(value) } 1253 } 1254 } 1255 impl ::std::convert::From<&UserDataTaskManager> for ::windows::runtime::IUnknown { from(value: &UserDataTaskManager) -> Self1256 fn from(value: &UserDataTaskManager) -> Self { 1257 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1258 } 1259 } 1260 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for UserDataTaskManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1261 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1262 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1263 } 1264 } 1265 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &UserDataTaskManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1266 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1267 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1268 } 1269 } 1270 impl ::std::convert::From<UserDataTaskManager> for ::windows::runtime::IInspectable { from(value: UserDataTaskManager) -> Self1271 fn from(value: UserDataTaskManager) -> Self { 1272 value.0 1273 } 1274 } 1275 impl ::std::convert::From<&UserDataTaskManager> for ::windows::runtime::IInspectable { from(value: &UserDataTaskManager) -> Self1276 fn from(value: &UserDataTaskManager) -> Self { 1277 value.0.clone() 1278 } 1279 } 1280 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for UserDataTaskManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1281 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1282 ::windows::runtime::Param::Owned(self.0) 1283 } 1284 } 1285 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a UserDataTaskManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1286 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1287 ::windows::runtime::Param::Borrowed(&self.0) 1288 } 1289 } 1290 unsafe impl ::std::marker::Send for UserDataTaskManager {} 1291 unsafe impl ::std::marker::Sync for UserDataTaskManager {} 1292 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1293 #[repr(transparent)] 1294 pub struct UserDataTaskPriority(pub i32); 1295 impl UserDataTaskPriority { 1296 pub const Normal: UserDataTaskPriority = UserDataTaskPriority(0i32); 1297 pub const Low: UserDataTaskPriority = UserDataTaskPriority(-1i32); 1298 pub const High: UserDataTaskPriority = UserDataTaskPriority(1i32); 1299 } 1300 impl ::std::convert::From<i32> for UserDataTaskPriority { from(value: i32) -> Self1301 fn from(value: i32) -> Self { 1302 Self(value) 1303 } 1304 } 1305 unsafe impl ::windows::runtime::Abi for UserDataTaskPriority { 1306 type Abi = Self; 1307 type DefaultType = Self; 1308 } 1309 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskPriority { 1310 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskPriority;i4)"); 1311 } 1312 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1313 #[repr(transparent)] 1314 pub struct UserDataTaskQueryKind(pub i32); 1315 impl UserDataTaskQueryKind { 1316 pub const All: UserDataTaskQueryKind = UserDataTaskQueryKind(0i32); 1317 pub const Incomplete: UserDataTaskQueryKind = UserDataTaskQueryKind(1i32); 1318 pub const Complete: UserDataTaskQueryKind = UserDataTaskQueryKind(2i32); 1319 } 1320 impl ::std::convert::From<i32> for UserDataTaskQueryKind { from(value: i32) -> Self1321 fn from(value: i32) -> Self { 1322 Self(value) 1323 } 1324 } 1325 unsafe impl ::windows::runtime::Abi for UserDataTaskQueryKind { 1326 type Abi = Self; 1327 type DefaultType = Self; 1328 } 1329 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskQueryKind { 1330 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskQueryKind;i4)"); 1331 } 1332 #[repr(transparent)] 1333 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1334 pub struct UserDataTaskQueryOptions(::windows::runtime::IInspectable); 1335 impl UserDataTaskQueryOptions { new() -> ::windows::runtime::Result<Self>1336 pub fn new() -> ::windows::runtime::Result<Self> { 1337 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 1338 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1339 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1340 static mut SHARED: ::windows::runtime::FactoryCache<UserDataTaskQueryOptions, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 1341 unsafe { SHARED.call(callback) } 1342 } SortProperty(&self) -> ::windows::runtime::Result<UserDataTaskQuerySortProperty>1343 pub fn SortProperty(&self) -> ::windows::runtime::Result<UserDataTaskQuerySortProperty> { 1344 let this = self; 1345 unsafe { 1346 let mut result__: UserDataTaskQuerySortProperty = ::std::mem::zeroed(); 1347 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskQuerySortProperty>(result__) 1348 } 1349 } SetSortProperty(&self, value: UserDataTaskQuerySortProperty) -> ::windows::runtime::Result<()>1350 pub fn SetSortProperty(&self, value: UserDataTaskQuerySortProperty) -> ::windows::runtime::Result<()> { 1351 let this = self; 1352 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1353 } Kind(&self) -> ::windows::runtime::Result<UserDataTaskQueryKind>1354 pub fn Kind(&self) -> ::windows::runtime::Result<UserDataTaskQueryKind> { 1355 let this = self; 1356 unsafe { 1357 let mut result__: UserDataTaskQueryKind = ::std::mem::zeroed(); 1358 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskQueryKind>(result__) 1359 } 1360 } SetKind(&self, value: UserDataTaskQueryKind) -> ::windows::runtime::Result<()>1361 pub fn SetKind(&self, value: UserDataTaskQueryKind) -> ::windows::runtime::Result<()> { 1362 let this = self; 1363 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 1364 } 1365 } 1366 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskQueryOptions { 1367 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.UserDataTasks.UserDataTaskQueryOptions;{959f27ed-909a-4d30-8c1b-331d8fe667e2})"); 1368 } 1369 unsafe impl ::windows::runtime::Interface for UserDataTaskQueryOptions { 1370 type Vtable = IUserDataTaskQueryOptions_abi; 1371 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2510235629, 37018, 19760, [140, 27, 51, 29, 143, 230, 103, 226]); 1372 } 1373 impl ::windows::runtime::RuntimeName for UserDataTaskQueryOptions { 1374 const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskQueryOptions"; 1375 } 1376 impl ::std::convert::From<UserDataTaskQueryOptions> for ::windows::runtime::IUnknown { from(value: UserDataTaskQueryOptions) -> Self1377 fn from(value: UserDataTaskQueryOptions) -> Self { 1378 unsafe { ::std::mem::transmute(value) } 1379 } 1380 } 1381 impl ::std::convert::From<&UserDataTaskQueryOptions> for ::windows::runtime::IUnknown { from(value: &UserDataTaskQueryOptions) -> Self1382 fn from(value: &UserDataTaskQueryOptions) -> Self { 1383 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1384 } 1385 } 1386 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for UserDataTaskQueryOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1387 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1388 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1389 } 1390 } 1391 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &UserDataTaskQueryOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1392 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1393 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1394 } 1395 } 1396 impl ::std::convert::From<UserDataTaskQueryOptions> for ::windows::runtime::IInspectable { from(value: UserDataTaskQueryOptions) -> Self1397 fn from(value: UserDataTaskQueryOptions) -> Self { 1398 value.0 1399 } 1400 } 1401 impl ::std::convert::From<&UserDataTaskQueryOptions> for ::windows::runtime::IInspectable { from(value: &UserDataTaskQueryOptions) -> Self1402 fn from(value: &UserDataTaskQueryOptions) -> Self { 1403 value.0.clone() 1404 } 1405 } 1406 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for UserDataTaskQueryOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1407 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1408 ::windows::runtime::Param::Owned(self.0) 1409 } 1410 } 1411 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a UserDataTaskQueryOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1412 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1413 ::windows::runtime::Param::Borrowed(&self.0) 1414 } 1415 } 1416 unsafe impl ::std::marker::Send for UserDataTaskQueryOptions {} 1417 unsafe impl ::std::marker::Sync for UserDataTaskQueryOptions {} 1418 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1419 #[repr(transparent)] 1420 pub struct UserDataTaskQuerySortProperty(pub i32); 1421 impl UserDataTaskQuerySortProperty { 1422 pub const DueDate: UserDataTaskQuerySortProperty = UserDataTaskQuerySortProperty(0i32); 1423 } 1424 impl ::std::convert::From<i32> for UserDataTaskQuerySortProperty { from(value: i32) -> Self1425 fn from(value: i32) -> Self { 1426 Self(value) 1427 } 1428 } 1429 unsafe impl ::windows::runtime::Abi for UserDataTaskQuerySortProperty { 1430 type Abi = Self; 1431 type DefaultType = Self; 1432 } 1433 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskQuerySortProperty { 1434 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskQuerySortProperty;i4)"); 1435 } 1436 #[repr(transparent)] 1437 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1438 pub struct UserDataTaskReader(::windows::runtime::IInspectable); 1439 impl UserDataTaskReader { 1440 #[cfg(feature = "Foundation")] ReadBatchAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTaskBatch>>1441 pub fn ReadBatchAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTaskBatch>> { 1442 let this = self; 1443 unsafe { 1444 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1445 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<UserDataTaskBatch>>(result__) 1446 } 1447 } 1448 } 1449 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskReader { 1450 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.UserDataTasks.UserDataTaskReader;{03e688b1-4ccf-4500-883b-e76290cfed63})"); 1451 } 1452 unsafe impl ::windows::runtime::Interface for UserDataTaskReader { 1453 type Vtable = IUserDataTaskReader_abi; 1454 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(65439921, 19663, 17664, [136, 59, 231, 98, 144, 207, 237, 99]); 1455 } 1456 impl ::windows::runtime::RuntimeName for UserDataTaskReader { 1457 const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskReader"; 1458 } 1459 impl ::std::convert::From<UserDataTaskReader> for ::windows::runtime::IUnknown { from(value: UserDataTaskReader) -> Self1460 fn from(value: UserDataTaskReader) -> Self { 1461 unsafe { ::std::mem::transmute(value) } 1462 } 1463 } 1464 impl ::std::convert::From<&UserDataTaskReader> for ::windows::runtime::IUnknown { from(value: &UserDataTaskReader) -> Self1465 fn from(value: &UserDataTaskReader) -> Self { 1466 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1467 } 1468 } 1469 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for UserDataTaskReader { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1470 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1471 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1472 } 1473 } 1474 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &UserDataTaskReader { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1475 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1476 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1477 } 1478 } 1479 impl ::std::convert::From<UserDataTaskReader> for ::windows::runtime::IInspectable { from(value: UserDataTaskReader) -> Self1480 fn from(value: UserDataTaskReader) -> Self { 1481 value.0 1482 } 1483 } 1484 impl ::std::convert::From<&UserDataTaskReader> for ::windows::runtime::IInspectable { from(value: &UserDataTaskReader) -> Self1485 fn from(value: &UserDataTaskReader) -> Self { 1486 value.0.clone() 1487 } 1488 } 1489 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for UserDataTaskReader { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1490 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1491 ::windows::runtime::Param::Owned(self.0) 1492 } 1493 } 1494 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a UserDataTaskReader { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1495 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1496 ::windows::runtime::Param::Borrowed(&self.0) 1497 } 1498 } 1499 unsafe impl ::std::marker::Send for UserDataTaskReader {} 1500 unsafe impl ::std::marker::Sync for UserDataTaskReader {} 1501 #[repr(transparent)] 1502 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1503 pub struct UserDataTaskRecurrenceProperties(::windows::runtime::IInspectable); 1504 impl UserDataTaskRecurrenceProperties { new() -> ::windows::runtime::Result<Self>1505 pub fn new() -> ::windows::runtime::Result<Self> { 1506 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 1507 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1508 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1509 static mut SHARED: ::windows::runtime::FactoryCache<UserDataTaskRecurrenceProperties, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 1510 unsafe { SHARED.call(callback) } 1511 } Unit(&self) -> ::windows::runtime::Result<UserDataTaskRecurrenceUnit>1512 pub fn Unit(&self) -> ::windows::runtime::Result<UserDataTaskRecurrenceUnit> { 1513 let this = self; 1514 unsafe { 1515 let mut result__: UserDataTaskRecurrenceUnit = ::std::mem::zeroed(); 1516 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskRecurrenceUnit>(result__) 1517 } 1518 } SetUnit(&self, value: UserDataTaskRecurrenceUnit) -> ::windows::runtime::Result<()>1519 pub fn SetUnit(&self, value: UserDataTaskRecurrenceUnit) -> ::windows::runtime::Result<()> { 1520 let this = self; 1521 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1522 } 1523 #[cfg(feature = "Foundation")] Occurrences(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<i32>>1524 pub fn Occurrences(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<i32>> { 1525 let this = self; 1526 unsafe { 1527 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1528 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<i32>>(result__) 1529 } 1530 } 1531 #[cfg(feature = "Foundation")] SetOccurrences<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<i32>>>(&self, value: Param0) -> ::windows::runtime::Result<()>1532 pub fn SetOccurrences<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<i32>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1533 let this = self; 1534 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1535 } 1536 #[cfg(feature = "Foundation")] Until(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>>1537 pub fn Until(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> { 1538 let this = self; 1539 unsafe { 1540 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1541 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>(result__) 1542 } 1543 } 1544 #[cfg(feature = "Foundation")] SetUntil<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()>1545 pub fn SetUntil<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1546 let this = self; 1547 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1548 } Interval(&self) -> ::windows::runtime::Result<i32>1549 pub fn Interval(&self) -> ::windows::runtime::Result<i32> { 1550 let this = self; 1551 unsafe { 1552 let mut result__: i32 = ::std::mem::zeroed(); 1553 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 1554 } 1555 } SetInterval(&self, value: i32) -> ::windows::runtime::Result<()>1556 pub fn SetInterval(&self, value: i32) -> ::windows::runtime::Result<()> { 1557 let this = self; 1558 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 1559 } 1560 #[cfg(feature = "Foundation")] DaysOfWeek(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<UserDataTaskDaysOfWeek>>1561 pub fn DaysOfWeek(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<UserDataTaskDaysOfWeek>> { 1562 let this = self; 1563 unsafe { 1564 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1565 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<UserDataTaskDaysOfWeek>>(result__) 1566 } 1567 } 1568 #[cfg(feature = "Foundation")] SetDaysOfWeek<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<UserDataTaskDaysOfWeek>>>(&self, value: Param0) -> ::windows::runtime::Result<()>1569 pub fn SetDaysOfWeek<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<UserDataTaskDaysOfWeek>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1570 let this = self; 1571 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1572 } 1573 #[cfg(feature = "Foundation")] WeekOfMonth(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<UserDataTaskWeekOfMonth>>1574 pub fn WeekOfMonth(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<UserDataTaskWeekOfMonth>> { 1575 let this = self; 1576 unsafe { 1577 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1578 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<UserDataTaskWeekOfMonth>>(result__) 1579 } 1580 } 1581 #[cfg(feature = "Foundation")] SetWeekOfMonth<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<UserDataTaskWeekOfMonth>>>(&self, value: Param0) -> ::windows::runtime::Result<()>1582 pub fn SetWeekOfMonth<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<UserDataTaskWeekOfMonth>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1583 let this = self; 1584 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1585 } 1586 #[cfg(feature = "Foundation")] Month(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<i32>>1587 pub fn Month(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<i32>> { 1588 let this = self; 1589 unsafe { 1590 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1591 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<i32>>(result__) 1592 } 1593 } 1594 #[cfg(feature = "Foundation")] SetMonth<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<i32>>>(&self, value: Param0) -> ::windows::runtime::Result<()>1595 pub fn SetMonth<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<i32>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1596 let this = self; 1597 unsafe { (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1598 } 1599 #[cfg(feature = "Foundation")] Day(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<i32>>1600 pub fn Day(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<i32>> { 1601 let this = self; 1602 unsafe { 1603 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1604 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<i32>>(result__) 1605 } 1606 } 1607 #[cfg(feature = "Foundation")] SetDay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<i32>>>(&self, value: Param0) -> ::windows::runtime::Result<()>1608 pub fn SetDay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<i32>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1609 let this = self; 1610 unsafe { (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1611 } 1612 } 1613 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskRecurrenceProperties { 1614 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.UserDataTasks.UserDataTaskRecurrenceProperties;{73df80b0-27c6-40ce-b149-9cd41485a69e})"); 1615 } 1616 unsafe impl ::windows::runtime::Interface for UserDataTaskRecurrenceProperties { 1617 type Vtable = IUserDataTaskRecurrenceProperties_abi; 1618 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1944027312, 10182, 16590, [177, 73, 156, 212, 20, 133, 166, 158]); 1619 } 1620 impl ::windows::runtime::RuntimeName for UserDataTaskRecurrenceProperties { 1621 const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskRecurrenceProperties"; 1622 } 1623 impl ::std::convert::From<UserDataTaskRecurrenceProperties> for ::windows::runtime::IUnknown { from(value: UserDataTaskRecurrenceProperties) -> Self1624 fn from(value: UserDataTaskRecurrenceProperties) -> Self { 1625 unsafe { ::std::mem::transmute(value) } 1626 } 1627 } 1628 impl ::std::convert::From<&UserDataTaskRecurrenceProperties> for ::windows::runtime::IUnknown { from(value: &UserDataTaskRecurrenceProperties) -> Self1629 fn from(value: &UserDataTaskRecurrenceProperties) -> Self { 1630 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1631 } 1632 } 1633 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for UserDataTaskRecurrenceProperties { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1634 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1635 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1636 } 1637 } 1638 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &UserDataTaskRecurrenceProperties { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1639 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1640 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1641 } 1642 } 1643 impl ::std::convert::From<UserDataTaskRecurrenceProperties> for ::windows::runtime::IInspectable { from(value: UserDataTaskRecurrenceProperties) -> Self1644 fn from(value: UserDataTaskRecurrenceProperties) -> Self { 1645 value.0 1646 } 1647 } 1648 impl ::std::convert::From<&UserDataTaskRecurrenceProperties> for ::windows::runtime::IInspectable { from(value: &UserDataTaskRecurrenceProperties) -> Self1649 fn from(value: &UserDataTaskRecurrenceProperties) -> Self { 1650 value.0.clone() 1651 } 1652 } 1653 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for UserDataTaskRecurrenceProperties { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1654 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1655 ::windows::runtime::Param::Owned(self.0) 1656 } 1657 } 1658 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a UserDataTaskRecurrenceProperties { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1659 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1660 ::windows::runtime::Param::Borrowed(&self.0) 1661 } 1662 } 1663 unsafe impl ::std::marker::Send for UserDataTaskRecurrenceProperties {} 1664 unsafe impl ::std::marker::Sync for UserDataTaskRecurrenceProperties {} 1665 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1666 #[repr(transparent)] 1667 pub struct UserDataTaskRecurrenceUnit(pub i32); 1668 impl UserDataTaskRecurrenceUnit { 1669 pub const Daily: UserDataTaskRecurrenceUnit = UserDataTaskRecurrenceUnit(0i32); 1670 pub const Weekly: UserDataTaskRecurrenceUnit = UserDataTaskRecurrenceUnit(1i32); 1671 pub const Monthly: UserDataTaskRecurrenceUnit = UserDataTaskRecurrenceUnit(2i32); 1672 pub const MonthlyOnDay: UserDataTaskRecurrenceUnit = UserDataTaskRecurrenceUnit(3i32); 1673 pub const Yearly: UserDataTaskRecurrenceUnit = UserDataTaskRecurrenceUnit(4i32); 1674 pub const YearlyOnDay: UserDataTaskRecurrenceUnit = UserDataTaskRecurrenceUnit(5i32); 1675 } 1676 impl ::std::convert::From<i32> for UserDataTaskRecurrenceUnit { from(value: i32) -> Self1677 fn from(value: i32) -> Self { 1678 Self(value) 1679 } 1680 } 1681 unsafe impl ::windows::runtime::Abi for UserDataTaskRecurrenceUnit { 1682 type Abi = Self; 1683 type DefaultType = Self; 1684 } 1685 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskRecurrenceUnit { 1686 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskRecurrenceUnit;i4)"); 1687 } 1688 #[repr(transparent)] 1689 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1690 pub struct UserDataTaskRegenerationProperties(::windows::runtime::IInspectable); 1691 impl UserDataTaskRegenerationProperties { new() -> ::windows::runtime::Result<Self>1692 pub fn new() -> ::windows::runtime::Result<Self> { 1693 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 1694 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1695 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1696 static mut SHARED: ::windows::runtime::FactoryCache<UserDataTaskRegenerationProperties, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 1697 unsafe { SHARED.call(callback) } 1698 } Unit(&self) -> ::windows::runtime::Result<UserDataTaskRegenerationUnit>1699 pub fn Unit(&self) -> ::windows::runtime::Result<UserDataTaskRegenerationUnit> { 1700 let this = self; 1701 unsafe { 1702 let mut result__: UserDataTaskRegenerationUnit = ::std::mem::zeroed(); 1703 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UserDataTaskRegenerationUnit>(result__) 1704 } 1705 } SetUnit(&self, value: UserDataTaskRegenerationUnit) -> ::windows::runtime::Result<()>1706 pub fn SetUnit(&self, value: UserDataTaskRegenerationUnit) -> ::windows::runtime::Result<()> { 1707 let this = self; 1708 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1709 } 1710 #[cfg(feature = "Foundation")] Occurrences(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<i32>>1711 pub fn Occurrences(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<i32>> { 1712 let this = self; 1713 unsafe { 1714 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1715 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<i32>>(result__) 1716 } 1717 } 1718 #[cfg(feature = "Foundation")] SetOccurrences<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<i32>>>(&self, value: Param0) -> ::windows::runtime::Result<()>1719 pub fn SetOccurrences<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<i32>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1720 let this = self; 1721 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1722 } 1723 #[cfg(feature = "Foundation")] Until(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>>1724 pub fn Until(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> { 1725 let this = self; 1726 unsafe { 1727 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1728 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>(result__) 1729 } 1730 } 1731 #[cfg(feature = "Foundation")] SetUntil<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()>1732 pub fn SetUntil<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::DateTime>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1733 let this = self; 1734 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1735 } Interval(&self) -> ::windows::runtime::Result<i32>1736 pub fn Interval(&self) -> ::windows::runtime::Result<i32> { 1737 let this = self; 1738 unsafe { 1739 let mut result__: i32 = ::std::mem::zeroed(); 1740 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 1741 } 1742 } SetInterval(&self, value: i32) -> ::windows::runtime::Result<()>1743 pub fn SetInterval(&self, value: i32) -> ::windows::runtime::Result<()> { 1744 let this = self; 1745 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 1746 } 1747 } 1748 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskRegenerationProperties { 1749 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.UserDataTasks.UserDataTaskRegenerationProperties;{92ab0007-090e-4704-bb5c-84fc0b0d9c31})"); 1750 } 1751 unsafe impl ::windows::runtime::Interface for UserDataTaskRegenerationProperties { 1752 type Vtable = IUserDataTaskRegenerationProperties_abi; 1753 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2460680199, 2318, 18180, [187, 92, 132, 252, 11, 13, 156, 49]); 1754 } 1755 impl ::windows::runtime::RuntimeName for UserDataTaskRegenerationProperties { 1756 const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskRegenerationProperties"; 1757 } 1758 impl ::std::convert::From<UserDataTaskRegenerationProperties> for ::windows::runtime::IUnknown { from(value: UserDataTaskRegenerationProperties) -> Self1759 fn from(value: UserDataTaskRegenerationProperties) -> Self { 1760 unsafe { ::std::mem::transmute(value) } 1761 } 1762 } 1763 impl ::std::convert::From<&UserDataTaskRegenerationProperties> for ::windows::runtime::IUnknown { from(value: &UserDataTaskRegenerationProperties) -> Self1764 fn from(value: &UserDataTaskRegenerationProperties) -> Self { 1765 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1766 } 1767 } 1768 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for UserDataTaskRegenerationProperties { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1769 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1770 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1771 } 1772 } 1773 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &UserDataTaskRegenerationProperties { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1774 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1775 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1776 } 1777 } 1778 impl ::std::convert::From<UserDataTaskRegenerationProperties> for ::windows::runtime::IInspectable { from(value: UserDataTaskRegenerationProperties) -> Self1779 fn from(value: UserDataTaskRegenerationProperties) -> Self { 1780 value.0 1781 } 1782 } 1783 impl ::std::convert::From<&UserDataTaskRegenerationProperties> for ::windows::runtime::IInspectable { from(value: &UserDataTaskRegenerationProperties) -> Self1784 fn from(value: &UserDataTaskRegenerationProperties) -> Self { 1785 value.0.clone() 1786 } 1787 } 1788 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for UserDataTaskRegenerationProperties { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1789 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1790 ::windows::runtime::Param::Owned(self.0) 1791 } 1792 } 1793 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a UserDataTaskRegenerationProperties { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1794 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1795 ::windows::runtime::Param::Borrowed(&self.0) 1796 } 1797 } 1798 unsafe impl ::std::marker::Send for UserDataTaskRegenerationProperties {} 1799 unsafe impl ::std::marker::Sync for UserDataTaskRegenerationProperties {} 1800 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1801 #[repr(transparent)] 1802 pub struct UserDataTaskRegenerationUnit(pub i32); 1803 impl UserDataTaskRegenerationUnit { 1804 pub const Daily: UserDataTaskRegenerationUnit = UserDataTaskRegenerationUnit(0i32); 1805 pub const Weekly: UserDataTaskRegenerationUnit = UserDataTaskRegenerationUnit(1i32); 1806 pub const Monthly: UserDataTaskRegenerationUnit = UserDataTaskRegenerationUnit(2i32); 1807 pub const Yearly: UserDataTaskRegenerationUnit = UserDataTaskRegenerationUnit(4i32); 1808 } 1809 impl ::std::convert::From<i32> for UserDataTaskRegenerationUnit { from(value: i32) -> Self1810 fn from(value: i32) -> Self { 1811 Self(value) 1812 } 1813 } 1814 unsafe impl ::windows::runtime::Abi for UserDataTaskRegenerationUnit { 1815 type Abi = Self; 1816 type DefaultType = Self; 1817 } 1818 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskRegenerationUnit { 1819 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskRegenerationUnit;i4)"); 1820 } 1821 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1822 #[repr(transparent)] 1823 pub struct UserDataTaskSensitivity(pub i32); 1824 impl UserDataTaskSensitivity { 1825 pub const Public: UserDataTaskSensitivity = UserDataTaskSensitivity(0i32); 1826 pub const Private: UserDataTaskSensitivity = UserDataTaskSensitivity(1i32); 1827 } 1828 impl ::std::convert::From<i32> for UserDataTaskSensitivity { from(value: i32) -> Self1829 fn from(value: i32) -> Self { 1830 Self(value) 1831 } 1832 } 1833 unsafe impl ::windows::runtime::Abi for UserDataTaskSensitivity { 1834 type Abi = Self; 1835 type DefaultType = Self; 1836 } 1837 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskSensitivity { 1838 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskSensitivity;i4)"); 1839 } 1840 #[repr(transparent)] 1841 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1842 pub struct UserDataTaskStore(::windows::runtime::IInspectable); 1843 impl UserDataTaskStore { 1844 #[cfg(feature = "Foundation")] CreateListAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTaskList>>1845 pub fn CreateListAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTaskList>> { 1846 let this = self; 1847 unsafe { 1848 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1849 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<UserDataTaskList>>(result__) 1850 } 1851 } 1852 #[cfg(feature = "Foundation")] CreateListInAccountAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0, userdataaccountid: Param1) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTaskList>>1853 pub fn CreateListInAccountAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0, userdataaccountid: Param1) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTaskList>> { 1854 let this = self; 1855 unsafe { 1856 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1857 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), name.into_param().abi(), userdataaccountid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<UserDataTaskList>>(result__) 1858 } 1859 } 1860 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] FindListsAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<UserDataTaskList>>>1861 pub fn FindListsAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<UserDataTaskList>>> { 1862 let this = self; 1863 unsafe { 1864 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1865 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<UserDataTaskList>>>(result__) 1866 } 1867 } 1868 #[cfg(feature = "Foundation")] GetListAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, tasklistid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTaskList>>1869 pub fn GetListAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, tasklistid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<UserDataTaskList>> { 1870 let this = self; 1871 unsafe { 1872 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1873 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), tasklistid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<UserDataTaskList>>(result__) 1874 } 1875 } 1876 } 1877 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskStore { 1878 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.UserDataTasks.UserDataTaskStore;{f06a9cb0-f1db-45ba-8a62-086004c0213d})"); 1879 } 1880 unsafe impl ::windows::runtime::Interface for UserDataTaskStore { 1881 type Vtable = IUserDataTaskStore_abi; 1882 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4033518768, 61915, 17850, [138, 98, 8, 96, 4, 192, 33, 61]); 1883 } 1884 impl ::windows::runtime::RuntimeName for UserDataTaskStore { 1885 const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskStore"; 1886 } 1887 impl ::std::convert::From<UserDataTaskStore> for ::windows::runtime::IUnknown { from(value: UserDataTaskStore) -> Self1888 fn from(value: UserDataTaskStore) -> Self { 1889 unsafe { ::std::mem::transmute(value) } 1890 } 1891 } 1892 impl ::std::convert::From<&UserDataTaskStore> for ::windows::runtime::IUnknown { from(value: &UserDataTaskStore) -> Self1893 fn from(value: &UserDataTaskStore) -> Self { 1894 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1895 } 1896 } 1897 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for UserDataTaskStore { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1898 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1899 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1900 } 1901 } 1902 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &UserDataTaskStore { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1903 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1904 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1905 } 1906 } 1907 impl ::std::convert::From<UserDataTaskStore> for ::windows::runtime::IInspectable { from(value: UserDataTaskStore) -> Self1908 fn from(value: UserDataTaskStore) -> Self { 1909 value.0 1910 } 1911 } 1912 impl ::std::convert::From<&UserDataTaskStore> for ::windows::runtime::IInspectable { from(value: &UserDataTaskStore) -> Self1913 fn from(value: &UserDataTaskStore) -> Self { 1914 value.0.clone() 1915 } 1916 } 1917 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for UserDataTaskStore { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1918 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1919 ::windows::runtime::Param::Owned(self.0) 1920 } 1921 } 1922 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a UserDataTaskStore { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1923 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1924 ::windows::runtime::Param::Borrowed(&self.0) 1925 } 1926 } 1927 unsafe impl ::std::marker::Send for UserDataTaskStore {} 1928 unsafe impl ::std::marker::Sync for UserDataTaskStore {} 1929 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1930 #[repr(transparent)] 1931 pub struct UserDataTaskStoreAccessType(pub i32); 1932 impl UserDataTaskStoreAccessType { 1933 pub const AppTasksReadWrite: UserDataTaskStoreAccessType = UserDataTaskStoreAccessType(0i32); 1934 pub const AllTasksLimitedReadWrite: UserDataTaskStoreAccessType = UserDataTaskStoreAccessType(1i32); 1935 } 1936 impl ::std::convert::From<i32> for UserDataTaskStoreAccessType { from(value: i32) -> Self1937 fn from(value: i32) -> Self { 1938 Self(value) 1939 } 1940 } 1941 unsafe impl ::windows::runtime::Abi for UserDataTaskStoreAccessType { 1942 type Abi = Self; 1943 type DefaultType = Self; 1944 } 1945 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskStoreAccessType { 1946 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskStoreAccessType;i4)"); 1947 } 1948 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1949 #[repr(transparent)] 1950 pub struct UserDataTaskWeekOfMonth(pub i32); 1951 impl UserDataTaskWeekOfMonth { 1952 pub const First: UserDataTaskWeekOfMonth = UserDataTaskWeekOfMonth(0i32); 1953 pub const Second: UserDataTaskWeekOfMonth = UserDataTaskWeekOfMonth(1i32); 1954 pub const Third: UserDataTaskWeekOfMonth = UserDataTaskWeekOfMonth(2i32); 1955 pub const Fourth: UserDataTaskWeekOfMonth = UserDataTaskWeekOfMonth(3i32); 1956 pub const Last: UserDataTaskWeekOfMonth = UserDataTaskWeekOfMonth(4i32); 1957 } 1958 impl ::std::convert::From<i32> for UserDataTaskWeekOfMonth { from(value: i32) -> Self1959 fn from(value: i32) -> Self { 1960 Self(value) 1961 } 1962 } 1963 unsafe impl ::windows::runtime::Abi for UserDataTaskWeekOfMonth { 1964 type Abi = Self; 1965 type DefaultType = Self; 1966 } 1967 unsafe impl ::windows::runtime::RuntimeType for UserDataTaskWeekOfMonth { 1968 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.UserDataTasks.UserDataTaskWeekOfMonth;i4)"); 1969 } 1970