1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] 2 #[repr(C)] 3 #[derive(:: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug, :: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy)] 4 pub struct CallsBackgroundContract(pub u8); 5 #[repr(transparent)] 6 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 7 #[doc(hidden)] 8 pub struct IPhoneCallBlockedTriggerDetails(::windows::runtime::IInspectable); 9 unsafe impl ::windows::runtime::Interface for IPhoneCallBlockedTriggerDetails { 10 type Vtable = IPhoneCallBlockedTriggerDetails_abi; 11 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2762379426, 58561, 17023, [134, 78, 228, 112, 71, 125, 219, 103]); 12 } 13 #[repr(C)] 14 #[doc(hidden)] 15 pub struct IPhoneCallBlockedTriggerDetails_abi( 16 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 17 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 18 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 19 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 20 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 21 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::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 ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 24 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PhoneCallBlockedReason) -> ::windows::runtime::HRESULT, 25 ); 26 #[repr(transparent)] 27 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 28 #[doc(hidden)] 29 pub struct IPhoneCallOriginDataRequestTriggerDetails(::windows::runtime::IInspectable); 30 unsafe impl ::windows::runtime::Interface for IPhoneCallOriginDataRequestTriggerDetails { 31 type Vtable = IPhoneCallOriginDataRequestTriggerDetails_abi; 32 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1855675199, 50507, 20098, [76, 201, 227, 41, 164, 24, 69, 146]); 33 } 34 #[repr(C)] 35 #[doc(hidden)] 36 pub struct IPhoneCallOriginDataRequestTriggerDetails_abi( 37 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 38 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 39 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 40 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 41 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 42 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 43 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 44 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 45 ); 46 #[repr(transparent)] 47 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 48 #[doc(hidden)] 49 pub struct IPhoneIncomingCallDismissedTriggerDetails(::windows::runtime::IInspectable); 50 unsafe impl ::windows::runtime::Interface for IPhoneIncomingCallDismissedTriggerDetails { 51 type Vtable = IPhoneIncomingCallDismissedTriggerDetails_abi; 52 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3134390902, 33718, 22322, [156, 56, 12, 32, 101, 70, 25, 106]); 53 } 54 #[repr(C)] 55 #[doc(hidden)] 56 pub struct IPhoneIncomingCallDismissedTriggerDetails_abi( 57 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 58 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 59 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 60 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 61 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 62 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 63 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 64 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 65 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 66 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 67 #[cfg(not(feature = "Foundation"))] usize, 68 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 69 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PhoneIncomingCallDismissedReason) -> ::windows::runtime::HRESULT, 70 ); 71 #[repr(transparent)] 72 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 73 #[doc(hidden)] 74 pub struct IPhoneIncomingCallNotificationTriggerDetails(::windows::runtime::IInspectable); 75 unsafe impl ::windows::runtime::Interface for IPhoneIncomingCallNotificationTriggerDetails { 76 type Vtable = IPhoneIncomingCallNotificationTriggerDetails_abi; 77 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(722362436, 39730, 23874, [130, 34, 210, 129, 46, 57, 251, 33]); 78 } 79 #[repr(C)] 80 #[doc(hidden)] 81 pub struct IPhoneIncomingCallNotificationTriggerDetails_abi( 82 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 83 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 84 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 85 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 86 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 87 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 88 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 89 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 90 ); 91 #[repr(transparent)] 92 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 93 #[doc(hidden)] 94 pub struct IPhoneLineChangedTriggerDetails(::windows::runtime::IInspectable); 95 unsafe impl ::windows::runtime::Interface for IPhoneLineChangedTriggerDetails { 96 type Vtable = IPhoneLineChangedTriggerDetails_abi; 97 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3335725543, 53533, 16600, [178, 183, 228, 10, 1, 214, 98, 73]); 98 } 99 #[repr(C)] 100 #[doc(hidden)] 101 pub struct IPhoneLineChangedTriggerDetails_abi( 102 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 103 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 104 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 105 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 106 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 107 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 108 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 109 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PhoneLineChangeKind) -> ::windows::runtime::HRESULT, 110 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, lineproperty: PhoneLineProperties, result__: *mut bool) -> ::windows::runtime::HRESULT, 111 ); 112 #[repr(transparent)] 113 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 114 #[doc(hidden)] 115 pub struct IPhoneNewVoicemailMessageTriggerDetails(::windows::runtime::IInspectable); 116 unsafe impl ::windows::runtime::Interface for IPhoneNewVoicemailMessageTriggerDetails { 117 type Vtable = IPhoneNewVoicemailMessageTriggerDetails_abi; 118 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(329826331, 47153, 18643, [139, 169, 141, 34, 166, 88, 13, 207]); 119 } 120 #[repr(C)] 121 #[doc(hidden)] 122 pub struct IPhoneNewVoicemailMessageTriggerDetails_abi( 123 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 124 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 125 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 126 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 127 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 128 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 129 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 130 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut i32) -> ::windows::runtime::HRESULT, 131 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 132 ); 133 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 134 #[repr(transparent)] 135 pub struct PhoneCallBlockedReason(pub i32); 136 impl PhoneCallBlockedReason { 137 pub const InCallBlockingList: PhoneCallBlockedReason = PhoneCallBlockedReason(0i32); 138 pub const PrivateNumber: PhoneCallBlockedReason = PhoneCallBlockedReason(1i32); 139 pub const UnknownNumber: PhoneCallBlockedReason = PhoneCallBlockedReason(2i32); 140 } 141 impl ::std::convert::From<i32> for PhoneCallBlockedReason { from(value: i32) -> Self142 fn from(value: i32) -> Self { 143 Self(value) 144 } 145 } 146 unsafe impl ::windows::runtime::Abi for PhoneCallBlockedReason { 147 type Abi = Self; 148 type DefaultType = Self; 149 } 150 unsafe impl ::windows::runtime::RuntimeType for PhoneCallBlockedReason { 151 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Calls.Background.PhoneCallBlockedReason;i4)"); 152 } 153 #[repr(transparent)] 154 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 155 pub struct PhoneCallBlockedTriggerDetails(::windows::runtime::IInspectable); 156 impl PhoneCallBlockedTriggerDetails { PhoneNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>157 pub fn PhoneNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 158 let this = self; 159 unsafe { 160 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 161 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 162 } 163 } LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>164 pub fn LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 165 let this = self; 166 unsafe { 167 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 168 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 169 } 170 } CallBlockedReason(&self) -> ::windows::runtime::Result<PhoneCallBlockedReason>171 pub fn CallBlockedReason(&self) -> ::windows::runtime::Result<PhoneCallBlockedReason> { 172 let this = self; 173 unsafe { 174 let mut result__: PhoneCallBlockedReason = ::std::mem::zeroed(); 175 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PhoneCallBlockedReason>(result__) 176 } 177 } 178 } 179 unsafe impl ::windows::runtime::RuntimeType for PhoneCallBlockedTriggerDetails { 180 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails;{a4a690a2-e4c1-427f-864e-e470477ddb67})"); 181 } 182 unsafe impl ::windows::runtime::Interface for PhoneCallBlockedTriggerDetails { 183 type Vtable = IPhoneCallBlockedTriggerDetails_abi; 184 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2762379426, 58561, 17023, [134, 78, 228, 112, 71, 125, 219, 103]); 185 } 186 impl ::windows::runtime::RuntimeName for PhoneCallBlockedTriggerDetails { 187 const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails"; 188 } 189 impl ::std::convert::From<PhoneCallBlockedTriggerDetails> for ::windows::runtime::IUnknown { from(value: PhoneCallBlockedTriggerDetails) -> Self190 fn from(value: PhoneCallBlockedTriggerDetails) -> Self { 191 unsafe { ::std::mem::transmute(value) } 192 } 193 } 194 impl ::std::convert::From<&PhoneCallBlockedTriggerDetails> for ::windows::runtime::IUnknown { from(value: &PhoneCallBlockedTriggerDetails) -> Self195 fn from(value: &PhoneCallBlockedTriggerDetails) -> Self { 196 ::std::convert::From::from(::std::clone::Clone::clone(value)) 197 } 198 } 199 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PhoneCallBlockedTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>200 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 201 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 202 } 203 } 204 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PhoneCallBlockedTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>205 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 206 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 207 } 208 } 209 impl ::std::convert::From<PhoneCallBlockedTriggerDetails> for ::windows::runtime::IInspectable { from(value: PhoneCallBlockedTriggerDetails) -> Self210 fn from(value: PhoneCallBlockedTriggerDetails) -> Self { 211 value.0 212 } 213 } 214 impl ::std::convert::From<&PhoneCallBlockedTriggerDetails> for ::windows::runtime::IInspectable { from(value: &PhoneCallBlockedTriggerDetails) -> Self215 fn from(value: &PhoneCallBlockedTriggerDetails) -> Self { 216 value.0.clone() 217 } 218 } 219 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PhoneCallBlockedTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>220 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 221 ::windows::runtime::Param::Owned(self.0) 222 } 223 } 224 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PhoneCallBlockedTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>225 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 226 ::windows::runtime::Param::Borrowed(&self.0) 227 } 228 } 229 unsafe impl ::std::marker::Send for PhoneCallBlockedTriggerDetails {} 230 unsafe impl ::std::marker::Sync for PhoneCallBlockedTriggerDetails {} 231 #[repr(transparent)] 232 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 233 pub struct PhoneCallOriginDataRequestTriggerDetails(::windows::runtime::IInspectable); 234 impl PhoneCallOriginDataRequestTriggerDetails { RequestId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>235 pub fn RequestId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 236 let this = self; 237 unsafe { 238 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 239 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 240 } 241 } PhoneNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>242 pub fn PhoneNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 243 let this = self; 244 unsafe { 245 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 246 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 247 } 248 } 249 } 250 unsafe impl ::windows::runtime::RuntimeType for PhoneCallOriginDataRequestTriggerDetails { 251 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Calls.Background.PhoneCallOriginDataRequestTriggerDetails;{6e9b5b3f-c54b-4e82-4cc9-e329a4184592})"); 252 } 253 unsafe impl ::windows::runtime::Interface for PhoneCallOriginDataRequestTriggerDetails { 254 type Vtable = IPhoneCallOriginDataRequestTriggerDetails_abi; 255 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1855675199, 50507, 20098, [76, 201, 227, 41, 164, 24, 69, 146]); 256 } 257 impl ::windows::runtime::RuntimeName for PhoneCallOriginDataRequestTriggerDetails { 258 const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneCallOriginDataRequestTriggerDetails"; 259 } 260 impl ::std::convert::From<PhoneCallOriginDataRequestTriggerDetails> for ::windows::runtime::IUnknown { from(value: PhoneCallOriginDataRequestTriggerDetails) -> Self261 fn from(value: PhoneCallOriginDataRequestTriggerDetails) -> Self { 262 unsafe { ::std::mem::transmute(value) } 263 } 264 } 265 impl ::std::convert::From<&PhoneCallOriginDataRequestTriggerDetails> for ::windows::runtime::IUnknown { from(value: &PhoneCallOriginDataRequestTriggerDetails) -> Self266 fn from(value: &PhoneCallOriginDataRequestTriggerDetails) -> Self { 267 ::std::convert::From::from(::std::clone::Clone::clone(value)) 268 } 269 } 270 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PhoneCallOriginDataRequestTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>271 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 272 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 273 } 274 } 275 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PhoneCallOriginDataRequestTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>276 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 277 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 278 } 279 } 280 impl ::std::convert::From<PhoneCallOriginDataRequestTriggerDetails> for ::windows::runtime::IInspectable { from(value: PhoneCallOriginDataRequestTriggerDetails) -> Self281 fn from(value: PhoneCallOriginDataRequestTriggerDetails) -> Self { 282 value.0 283 } 284 } 285 impl ::std::convert::From<&PhoneCallOriginDataRequestTriggerDetails> for ::windows::runtime::IInspectable { from(value: &PhoneCallOriginDataRequestTriggerDetails) -> Self286 fn from(value: &PhoneCallOriginDataRequestTriggerDetails) -> Self { 287 value.0.clone() 288 } 289 } 290 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PhoneCallOriginDataRequestTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>291 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 292 ::windows::runtime::Param::Owned(self.0) 293 } 294 } 295 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PhoneCallOriginDataRequestTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>296 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 297 ::windows::runtime::Param::Borrowed(&self.0) 298 } 299 } 300 unsafe impl ::std::marker::Send for PhoneCallOriginDataRequestTriggerDetails {} 301 unsafe impl ::std::marker::Sync for PhoneCallOriginDataRequestTriggerDetails {} 302 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 303 #[repr(transparent)] 304 pub struct PhoneIncomingCallDismissedReason(pub i32); 305 impl PhoneIncomingCallDismissedReason { 306 pub const Unknown: PhoneIncomingCallDismissedReason = PhoneIncomingCallDismissedReason(0i32); 307 pub const CallRejected: PhoneIncomingCallDismissedReason = PhoneIncomingCallDismissedReason(1i32); 308 pub const TextReply: PhoneIncomingCallDismissedReason = PhoneIncomingCallDismissedReason(2i32); 309 pub const ConnectionLost: PhoneIncomingCallDismissedReason = PhoneIncomingCallDismissedReason(3i32); 310 } 311 impl ::std::convert::From<i32> for PhoneIncomingCallDismissedReason { from(value: i32) -> Self312 fn from(value: i32) -> Self { 313 Self(value) 314 } 315 } 316 unsafe impl ::windows::runtime::Abi for PhoneIncomingCallDismissedReason { 317 type Abi = Self; 318 type DefaultType = Self; 319 } 320 unsafe impl ::windows::runtime::RuntimeType for PhoneIncomingCallDismissedReason { 321 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedReason;i4)"); 322 } 323 #[repr(transparent)] 324 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 325 pub struct PhoneIncomingCallDismissedTriggerDetails(::windows::runtime::IInspectable); 326 impl PhoneIncomingCallDismissedTriggerDetails { LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>327 pub fn LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 328 let this = self; 329 unsafe { 330 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 331 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 332 } 333 } PhoneNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>334 pub fn PhoneNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 335 let this = self; 336 unsafe { 337 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 338 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 339 } 340 } DisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>341 pub fn DisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 342 let this = self; 343 unsafe { 344 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 345 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 346 } 347 } 348 #[cfg(feature = "Foundation")] DismissalTime(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>349 pub fn DismissalTime(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 350 let this = self; 351 unsafe { 352 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 353 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 354 } 355 } TextReplyMessage(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>356 pub fn TextReplyMessage(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 357 let this = self; 358 unsafe { 359 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 360 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 361 } 362 } Reason(&self) -> ::windows::runtime::Result<PhoneIncomingCallDismissedReason>363 pub fn Reason(&self) -> ::windows::runtime::Result<PhoneIncomingCallDismissedReason> { 364 let this = self; 365 unsafe { 366 let mut result__: PhoneIncomingCallDismissedReason = ::std::mem::zeroed(); 367 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PhoneIncomingCallDismissedReason>(result__) 368 } 369 } 370 } 371 unsafe impl ::windows::runtime::RuntimeType for PhoneIncomingCallDismissedTriggerDetails { 372 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails;{bad30276-83b6-5732-9c38-0c206546196a})"); 373 } 374 unsafe impl ::windows::runtime::Interface for PhoneIncomingCallDismissedTriggerDetails { 375 type Vtable = IPhoneIncomingCallDismissedTriggerDetails_abi; 376 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3134390902, 33718, 22322, [156, 56, 12, 32, 101, 70, 25, 106]); 377 } 378 impl ::windows::runtime::RuntimeName for PhoneIncomingCallDismissedTriggerDetails { 379 const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails"; 380 } 381 impl ::std::convert::From<PhoneIncomingCallDismissedTriggerDetails> for ::windows::runtime::IUnknown { from(value: PhoneIncomingCallDismissedTriggerDetails) -> Self382 fn from(value: PhoneIncomingCallDismissedTriggerDetails) -> Self { 383 unsafe { ::std::mem::transmute(value) } 384 } 385 } 386 impl ::std::convert::From<&PhoneIncomingCallDismissedTriggerDetails> for ::windows::runtime::IUnknown { from(value: &PhoneIncomingCallDismissedTriggerDetails) -> Self387 fn from(value: &PhoneIncomingCallDismissedTriggerDetails) -> Self { 388 ::std::convert::From::from(::std::clone::Clone::clone(value)) 389 } 390 } 391 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PhoneIncomingCallDismissedTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>392 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 393 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 394 } 395 } 396 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PhoneIncomingCallDismissedTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>397 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 398 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 399 } 400 } 401 impl ::std::convert::From<PhoneIncomingCallDismissedTriggerDetails> for ::windows::runtime::IInspectable { from(value: PhoneIncomingCallDismissedTriggerDetails) -> Self402 fn from(value: PhoneIncomingCallDismissedTriggerDetails) -> Self { 403 value.0 404 } 405 } 406 impl ::std::convert::From<&PhoneIncomingCallDismissedTriggerDetails> for ::windows::runtime::IInspectable { from(value: &PhoneIncomingCallDismissedTriggerDetails) -> Self407 fn from(value: &PhoneIncomingCallDismissedTriggerDetails) -> Self { 408 value.0.clone() 409 } 410 } 411 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PhoneIncomingCallDismissedTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>412 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 413 ::windows::runtime::Param::Owned(self.0) 414 } 415 } 416 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PhoneIncomingCallDismissedTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>417 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 418 ::windows::runtime::Param::Borrowed(&self.0) 419 } 420 } 421 unsafe impl ::std::marker::Send for PhoneIncomingCallDismissedTriggerDetails {} 422 unsafe impl ::std::marker::Sync for PhoneIncomingCallDismissedTriggerDetails {} 423 #[repr(transparent)] 424 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 425 pub struct PhoneIncomingCallNotificationTriggerDetails(::windows::runtime::IInspectable); 426 impl PhoneIncomingCallNotificationTriggerDetails { LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>427 pub fn LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 428 let this = self; 429 unsafe { 430 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 431 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 432 } 433 } CallId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>434 pub fn CallId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 435 let this = self; 436 unsafe { 437 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 438 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 439 } 440 } 441 } 442 unsafe impl ::windows::runtime::RuntimeType for PhoneIncomingCallNotificationTriggerDetails { 443 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Calls.Background.PhoneIncomingCallNotificationTriggerDetails;{2b0e6044-9b32-5d42-8222-d2812e39fb21})"); 444 } 445 unsafe impl ::windows::runtime::Interface for PhoneIncomingCallNotificationTriggerDetails { 446 type Vtable = IPhoneIncomingCallNotificationTriggerDetails_abi; 447 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(722362436, 39730, 23874, [130, 34, 210, 129, 46, 57, 251, 33]); 448 } 449 impl ::windows::runtime::RuntimeName for PhoneIncomingCallNotificationTriggerDetails { 450 const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneIncomingCallNotificationTriggerDetails"; 451 } 452 impl ::std::convert::From<PhoneIncomingCallNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: PhoneIncomingCallNotificationTriggerDetails) -> Self453 fn from(value: PhoneIncomingCallNotificationTriggerDetails) -> Self { 454 unsafe { ::std::mem::transmute(value) } 455 } 456 } 457 impl ::std::convert::From<&PhoneIncomingCallNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: &PhoneIncomingCallNotificationTriggerDetails) -> Self458 fn from(value: &PhoneIncomingCallNotificationTriggerDetails) -> Self { 459 ::std::convert::From::from(::std::clone::Clone::clone(value)) 460 } 461 } 462 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PhoneIncomingCallNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>463 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 464 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 465 } 466 } 467 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PhoneIncomingCallNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>468 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 469 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 470 } 471 } 472 impl ::std::convert::From<PhoneIncomingCallNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: PhoneIncomingCallNotificationTriggerDetails) -> Self473 fn from(value: PhoneIncomingCallNotificationTriggerDetails) -> Self { 474 value.0 475 } 476 } 477 impl ::std::convert::From<&PhoneIncomingCallNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: &PhoneIncomingCallNotificationTriggerDetails) -> Self478 fn from(value: &PhoneIncomingCallNotificationTriggerDetails) -> Self { 479 value.0.clone() 480 } 481 } 482 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PhoneIncomingCallNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>483 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 484 ::windows::runtime::Param::Owned(self.0) 485 } 486 } 487 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PhoneIncomingCallNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>488 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 489 ::windows::runtime::Param::Borrowed(&self.0) 490 } 491 } 492 unsafe impl ::std::marker::Send for PhoneIncomingCallNotificationTriggerDetails {} 493 unsafe impl ::std::marker::Sync for PhoneIncomingCallNotificationTriggerDetails {} 494 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 495 #[repr(transparent)] 496 pub struct PhoneLineChangeKind(pub i32); 497 impl PhoneLineChangeKind { 498 pub const Added: PhoneLineChangeKind = PhoneLineChangeKind(0i32); 499 pub const Removed: PhoneLineChangeKind = PhoneLineChangeKind(1i32); 500 pub const PropertiesChanged: PhoneLineChangeKind = PhoneLineChangeKind(2i32); 501 } 502 impl ::std::convert::From<i32> for PhoneLineChangeKind { from(value: i32) -> Self503 fn from(value: i32) -> Self { 504 Self(value) 505 } 506 } 507 unsafe impl ::windows::runtime::Abi for PhoneLineChangeKind { 508 type Abi = Self; 509 type DefaultType = Self; 510 } 511 unsafe impl ::windows::runtime::RuntimeType for PhoneLineChangeKind { 512 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Calls.Background.PhoneLineChangeKind;i4)"); 513 } 514 #[repr(transparent)] 515 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 516 pub struct PhoneLineChangedTriggerDetails(::windows::runtime::IInspectable); 517 impl PhoneLineChangedTriggerDetails { LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>518 pub fn LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 519 let this = self; 520 unsafe { 521 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 522 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 523 } 524 } ChangeType(&self) -> ::windows::runtime::Result<PhoneLineChangeKind>525 pub fn ChangeType(&self) -> ::windows::runtime::Result<PhoneLineChangeKind> { 526 let this = self; 527 unsafe { 528 let mut result__: PhoneLineChangeKind = ::std::mem::zeroed(); 529 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PhoneLineChangeKind>(result__) 530 } 531 } HasLinePropertyChanged(&self, lineproperty: PhoneLineProperties) -> ::windows::runtime::Result<bool>532 pub fn HasLinePropertyChanged(&self, lineproperty: PhoneLineProperties) -> ::windows::runtime::Result<bool> { 533 let this = self; 534 unsafe { 535 let mut result__: bool = ::std::mem::zeroed(); 536 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), lineproperty, &mut result__).from_abi::<bool>(result__) 537 } 538 } 539 } 540 unsafe impl ::windows::runtime::RuntimeType for PhoneLineChangedTriggerDetails { 541 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails;{c6d321e7-d11d-40d8-b2b7-e40a01d66249})"); 542 } 543 unsafe impl ::windows::runtime::Interface for PhoneLineChangedTriggerDetails { 544 type Vtable = IPhoneLineChangedTriggerDetails_abi; 545 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3335725543, 53533, 16600, [178, 183, 228, 10, 1, 214, 98, 73]); 546 } 547 impl ::windows::runtime::RuntimeName for PhoneLineChangedTriggerDetails { 548 const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails"; 549 } 550 impl ::std::convert::From<PhoneLineChangedTriggerDetails> for ::windows::runtime::IUnknown { from(value: PhoneLineChangedTriggerDetails) -> Self551 fn from(value: PhoneLineChangedTriggerDetails) -> Self { 552 unsafe { ::std::mem::transmute(value) } 553 } 554 } 555 impl ::std::convert::From<&PhoneLineChangedTriggerDetails> for ::windows::runtime::IUnknown { from(value: &PhoneLineChangedTriggerDetails) -> Self556 fn from(value: &PhoneLineChangedTriggerDetails) -> Self { 557 ::std::convert::From::from(::std::clone::Clone::clone(value)) 558 } 559 } 560 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PhoneLineChangedTriggerDetails { 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 &PhoneLineChangedTriggerDetails { 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<PhoneLineChangedTriggerDetails> for ::windows::runtime::IInspectable { from(value: PhoneLineChangedTriggerDetails) -> Self571 fn from(value: PhoneLineChangedTriggerDetails) -> Self { 572 value.0 573 } 574 } 575 impl ::std::convert::From<&PhoneLineChangedTriggerDetails> for ::windows::runtime::IInspectable { from(value: &PhoneLineChangedTriggerDetails) -> Self576 fn from(value: &PhoneLineChangedTriggerDetails) -> Self { 577 value.0.clone() 578 } 579 } 580 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PhoneLineChangedTriggerDetails { 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 PhoneLineChangedTriggerDetails { 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 PhoneLineChangedTriggerDetails {} 591 unsafe impl ::std::marker::Sync for PhoneLineChangedTriggerDetails {} 592 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 593 #[repr(transparent)] 594 pub struct PhoneLineProperties(pub u32); 595 impl PhoneLineProperties { 596 pub const None: PhoneLineProperties = PhoneLineProperties(0u32); 597 pub const BrandingOptions: PhoneLineProperties = PhoneLineProperties(1u32); 598 pub const CanDial: PhoneLineProperties = PhoneLineProperties(2u32); 599 pub const CellularDetails: PhoneLineProperties = PhoneLineProperties(4u32); 600 pub const DisplayColor: PhoneLineProperties = PhoneLineProperties(8u32); 601 pub const DisplayName: PhoneLineProperties = PhoneLineProperties(16u32); 602 pub const NetworkName: PhoneLineProperties = PhoneLineProperties(32u32); 603 pub const NetworkState: PhoneLineProperties = PhoneLineProperties(64u32); 604 pub const Transport: PhoneLineProperties = PhoneLineProperties(128u32); 605 pub const Voicemail: PhoneLineProperties = PhoneLineProperties(256u32); 606 } 607 impl ::std::convert::From<u32> for PhoneLineProperties { from(value: u32) -> Self608 fn from(value: u32) -> Self { 609 Self(value) 610 } 611 } 612 unsafe impl ::windows::runtime::Abi for PhoneLineProperties { 613 type Abi = Self; 614 type DefaultType = Self; 615 } 616 unsafe impl ::windows::runtime::RuntimeType for PhoneLineProperties { 617 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Calls.Background.PhoneLineProperties;u4)"); 618 } 619 impl ::std::ops::BitOr for PhoneLineProperties { 620 type Output = Self; bitor(self, rhs: Self) -> Self621 fn bitor(self, rhs: Self) -> Self { 622 Self(self.0 | rhs.0) 623 } 624 } 625 impl ::std::ops::BitAnd for PhoneLineProperties { 626 type Output = Self; bitand(self, rhs: Self) -> Self627 fn bitand(self, rhs: Self) -> Self { 628 Self(self.0 & rhs.0) 629 } 630 } 631 impl ::std::ops::BitOrAssign for PhoneLineProperties { bitor_assign(&mut self, rhs: Self)632 fn bitor_assign(&mut self, rhs: Self) { 633 self.0.bitor_assign(rhs.0) 634 } 635 } 636 impl ::std::ops::BitAndAssign for PhoneLineProperties { bitand_assign(&mut self, rhs: Self)637 fn bitand_assign(&mut self, rhs: Self) { 638 self.0.bitand_assign(rhs.0) 639 } 640 } 641 impl ::std::ops::Not for PhoneLineProperties { 642 type Output = Self; not(self) -> Self643 fn not(self) -> Self { 644 Self(self.0.not()) 645 } 646 } 647 #[repr(transparent)] 648 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 649 pub struct PhoneNewVoicemailMessageTriggerDetails(::windows::runtime::IInspectable); 650 impl PhoneNewVoicemailMessageTriggerDetails { LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>651 pub fn LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 652 let this = self; 653 unsafe { 654 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 655 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 656 } 657 } VoicemailCount(&self) -> ::windows::runtime::Result<i32>658 pub fn VoicemailCount(&self) -> ::windows::runtime::Result<i32> { 659 let this = self; 660 unsafe { 661 let mut result__: i32 = ::std::mem::zeroed(); 662 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 663 } 664 } OperatorMessage(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>665 pub fn OperatorMessage(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 666 let this = self; 667 unsafe { 668 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 669 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 670 } 671 } 672 } 673 unsafe impl ::windows::runtime::RuntimeType for PhoneNewVoicemailMessageTriggerDetails { 674 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails;{13a8c01b-b831-48d3-8ba9-8d22a6580dcf})"); 675 } 676 unsafe impl ::windows::runtime::Interface for PhoneNewVoicemailMessageTriggerDetails { 677 type Vtable = IPhoneNewVoicemailMessageTriggerDetails_abi; 678 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(329826331, 47153, 18643, [139, 169, 141, 34, 166, 88, 13, 207]); 679 } 680 impl ::windows::runtime::RuntimeName for PhoneNewVoicemailMessageTriggerDetails { 681 const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails"; 682 } 683 impl ::std::convert::From<PhoneNewVoicemailMessageTriggerDetails> for ::windows::runtime::IUnknown { from(value: PhoneNewVoicemailMessageTriggerDetails) -> Self684 fn from(value: PhoneNewVoicemailMessageTriggerDetails) -> Self { 685 unsafe { ::std::mem::transmute(value) } 686 } 687 } 688 impl ::std::convert::From<&PhoneNewVoicemailMessageTriggerDetails> for ::windows::runtime::IUnknown { from(value: &PhoneNewVoicemailMessageTriggerDetails) -> Self689 fn from(value: &PhoneNewVoicemailMessageTriggerDetails) -> Self { 690 ::std::convert::From::from(::std::clone::Clone::clone(value)) 691 } 692 } 693 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PhoneNewVoicemailMessageTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>694 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 695 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 696 } 697 } 698 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PhoneNewVoicemailMessageTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>699 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 700 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 701 } 702 } 703 impl ::std::convert::From<PhoneNewVoicemailMessageTriggerDetails> for ::windows::runtime::IInspectable { from(value: PhoneNewVoicemailMessageTriggerDetails) -> Self704 fn from(value: PhoneNewVoicemailMessageTriggerDetails) -> Self { 705 value.0 706 } 707 } 708 impl ::std::convert::From<&PhoneNewVoicemailMessageTriggerDetails> for ::windows::runtime::IInspectable { from(value: &PhoneNewVoicemailMessageTriggerDetails) -> Self709 fn from(value: &PhoneNewVoicemailMessageTriggerDetails) -> Self { 710 value.0.clone() 711 } 712 } 713 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PhoneNewVoicemailMessageTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>714 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 715 ::windows::runtime::Param::Owned(self.0) 716 } 717 } 718 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PhoneNewVoicemailMessageTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>719 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 720 ::windows::runtime::Param::Borrowed(&self.0) 721 } 722 } 723 unsafe impl ::std::marker::Send for PhoneNewVoicemailMessageTriggerDetails {} 724 unsafe impl ::std::marker::Sync for PhoneNewVoicemailMessageTriggerDetails {} 725 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 726 #[repr(transparent)] 727 pub struct PhoneTriggerType(pub i32); 728 impl PhoneTriggerType { 729 pub const NewVoicemailMessage: PhoneTriggerType = PhoneTriggerType(0i32); 730 pub const CallHistoryChanged: PhoneTriggerType = PhoneTriggerType(1i32); 731 pub const LineChanged: PhoneTriggerType = PhoneTriggerType(2i32); 732 pub const AirplaneModeDisabledForEmergencyCall: PhoneTriggerType = PhoneTriggerType(3i32); 733 pub const CallOriginDataRequest: PhoneTriggerType = PhoneTriggerType(4i32); 734 pub const CallBlocked: PhoneTriggerType = PhoneTriggerType(5i32); 735 pub const IncomingCallDismissed: PhoneTriggerType = PhoneTriggerType(6i32); 736 pub const IncomingCallNotification: PhoneTriggerType = PhoneTriggerType(7i32); 737 } 738 impl ::std::convert::From<i32> for PhoneTriggerType { from(value: i32) -> Self739 fn from(value: i32) -> Self { 740 Self(value) 741 } 742 } 743 unsafe impl ::windows::runtime::Abi for PhoneTriggerType { 744 type Abi = Self; 745 type DefaultType = Self; 746 } 747 unsafe impl ::windows::runtime::RuntimeType for PhoneTriggerType { 748 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Calls.Background.PhoneTriggerType;i4)"); 749 } 750