1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] 2 pub struct AccessoryManager {} 3 impl AccessoryManager { RegisterAccessoryApp() -> ::windows::runtime::Result<::windows::runtime::HSTRING>4 pub fn RegisterAccessoryApp() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 5 Self::IAccessoryManager(|this| unsafe { 6 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 7 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 8 }) 9 } GetNextTriggerDetails() -> ::windows::runtime::Result<IAccessoryNotificationTriggerDetails>10 pub fn GetNextTriggerDetails() -> ::windows::runtime::Result<IAccessoryNotificationTriggerDetails> { 11 Self::IAccessoryManager(|this| unsafe { 12 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 13 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<IAccessoryNotificationTriggerDetails>(result__) 14 }) 15 } ProcessTriggerDetails<'a, Param0: ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails>>(pdetails: Param0) -> ::windows::runtime::Result<()>16 pub fn ProcessTriggerDetails<'a, Param0: ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails>>(pdetails: Param0) -> ::windows::runtime::Result<()> { 17 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), pdetails.into_param().abi()).ok() }) 18 } 19 #[cfg(feature = "Foundation_Collections")] PhoneLineDetails() -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<PhoneLineDetails>>20 pub fn PhoneLineDetails() -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<PhoneLineDetails>> { 21 Self::IAccessoryManager(|this| unsafe { 22 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 23 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Collections::IVectorView<PhoneLineDetails>>(result__) 24 }) 25 } GetPhoneLineDetails<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>>(phoneline: Param0) -> ::windows::runtime::Result<PhoneLineDetails>26 pub fn GetPhoneLineDetails<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>>(phoneline: Param0) -> ::windows::runtime::Result<PhoneLineDetails> { 27 Self::IAccessoryManager(|this| unsafe { 28 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 29 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), phoneline.into_param().abi(), &mut result__).from_abi::<PhoneLineDetails>(result__) 30 }) 31 } AcceptPhoneCall(phonecallid: u32) -> ::windows::runtime::Result<()>32 pub fn AcceptPhoneCall(phonecallid: u32) -> ::windows::runtime::Result<()> { 33 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), phonecallid).ok() }) 34 } AcceptPhoneCallOnEndpoint(phonecallid: u32, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::Result<()>35 pub fn AcceptPhoneCallOnEndpoint(phonecallid: u32, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::Result<()> { 36 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), phonecallid, endpoint).ok() }) 37 } AcceptPhoneCallWithVideo(phonecallid: u32) -> ::windows::runtime::Result<()>38 pub fn AcceptPhoneCallWithVideo(phonecallid: u32) -> ::windows::runtime::Result<()> { 39 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), phonecallid).ok() }) 40 } AcceptPhoneCallWithVideoOnAudioEndpoint(phonecallid: u32, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::Result<()>41 pub fn AcceptPhoneCallWithVideoOnAudioEndpoint(phonecallid: u32, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::Result<()> { 42 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), phonecallid, endpoint).ok() }) 43 } RejectPhoneCall(phonecallid: u32) -> ::windows::runtime::Result<()>44 pub fn RejectPhoneCall(phonecallid: u32) -> ::windows::runtime::Result<()> { 45 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), phonecallid).ok() }) 46 } RejectPhoneCallWithText(phonecallid: u32, textresponseid: u32) -> ::windows::runtime::Result<()>47 pub fn RejectPhoneCallWithText(phonecallid: u32, textresponseid: u32) -> ::windows::runtime::Result<()> { 48 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), phonecallid, textresponseid).ok() }) 49 } MakePhoneCall<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(phoneline: Param0, phonenumber: Param1) -> ::windows::runtime::Result<()>50 pub fn MakePhoneCall<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(phoneline: Param0, phonenumber: Param1) -> ::windows::runtime::Result<()> { 51 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), phoneline.into_param().abi(), phonenumber.into_param().abi()).ok() }) 52 } MakePhoneCallOnAudioEndpoint<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(phoneline: Param0, phonenumber: Param1, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::Result<()>53 pub fn MakePhoneCallOnAudioEndpoint<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(phoneline: Param0, phonenumber: Param1, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::Result<()> { 54 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), phoneline.into_param().abi(), phonenumber.into_param().abi(), endpoint).ok() }) 55 } MakePhoneCallWithVideo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(phoneline: Param0, phonenumber: Param1) -> ::windows::runtime::Result<()>56 pub fn MakePhoneCallWithVideo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(phoneline: Param0, phonenumber: Param1) -> ::windows::runtime::Result<()> { 57 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), phoneline.into_param().abi(), phonenumber.into_param().abi()).ok() }) 58 } MakePhoneCallWithVideoOnAudioEndpoint<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(phoneline: Param0, phonenumber: Param1, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::Result<()>59 pub fn MakePhoneCallWithVideoOnAudioEndpoint<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(phoneline: Param0, phonenumber: Param1, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::Result<()> { 60 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), phoneline.into_param().abi(), phonenumber.into_param().abi(), endpoint).ok() }) 61 } SwapPhoneCalls(phonecallidtohold: u32, phonecallidonhold: u32) -> ::windows::runtime::Result<()>62 pub fn SwapPhoneCalls(phonecallidtohold: u32, phonecallidonhold: u32) -> ::windows::runtime::Result<()> { 63 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), phonecallidtohold, phonecallidonhold).ok() }) 64 } HoldPhoneCall(phonecallid: u32, holdcall: bool) -> ::windows::runtime::Result<()>65 pub fn HoldPhoneCall(phonecallid: u32, holdcall: bool) -> ::windows::runtime::Result<()> { 66 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), phonecallid, holdcall).ok() }) 67 } EndPhoneCall(phonecallid: u32) -> ::windows::runtime::Result<()>68 pub fn EndPhoneCall(phonecallid: u32) -> ::windows::runtime::Result<()> { 69 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), phonecallid).ok() }) 70 } SetPhoneMute(value: bool) -> ::windows::runtime::Result<()>71 pub fn SetPhoneMute(value: bool) -> ::windows::runtime::Result<()> { 72 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), value).ok() }) 73 } PhoneMute() -> ::windows::runtime::Result<bool>74 pub fn PhoneMute() -> ::windows::runtime::Result<bool> { 75 Self::IAccessoryManager(|this| unsafe { 76 let mut result__: bool = ::std::mem::zeroed(); 77 (::windows::runtime::Interface::vtable(this).25)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 78 }) 79 } SetPhoneCallAudioEndpoint(value: PhoneCallAudioEndpoint) -> ::windows::runtime::Result<()>80 pub fn SetPhoneCallAudioEndpoint(value: PhoneCallAudioEndpoint) -> ::windows::runtime::Result<()> { 81 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).26)(::std::mem::transmute_copy(this), value).ok() }) 82 } PhoneCallAudioEndpoint() -> ::windows::runtime::Result<PhoneCallAudioEndpoint>83 pub fn PhoneCallAudioEndpoint() -> ::windows::runtime::Result<PhoneCallAudioEndpoint> { 84 Self::IAccessoryManager(|this| unsafe { 85 let mut result__: PhoneCallAudioEndpoint = ::std::mem::zeroed(); 86 (::windows::runtime::Interface::vtable(this).27)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PhoneCallAudioEndpoint>(result__) 87 }) 88 } SnoozeAlarm<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>>(alarmid: Param0) -> ::windows::runtime::Result<()>89 pub fn SnoozeAlarm<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>>(alarmid: Param0) -> ::windows::runtime::Result<()> { 90 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).28)(::std::mem::transmute_copy(this), alarmid.into_param().abi()).ok() }) 91 } 92 #[cfg(feature = "Foundation")] SnoozeAlarmForSpecifiedTime<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TimeSpan>>(alarmid: Param0, timespan: Param1) -> ::windows::runtime::Result<()>93 pub fn SnoozeAlarmForSpecifiedTime<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TimeSpan>>(alarmid: Param0, timespan: Param1) -> ::windows::runtime::Result<()> { 94 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).29)(::std::mem::transmute_copy(this), alarmid.into_param().abi(), timespan.into_param().abi()).ok() }) 95 } DismissAlarm<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>>(alarmid: Param0) -> ::windows::runtime::Result<()>96 pub fn DismissAlarm<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>>(alarmid: Param0) -> ::windows::runtime::Result<()> { 97 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).30)(::std::mem::transmute_copy(this), alarmid.into_param().abi()).ok() }) 98 } SnoozeReminder<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>>(reminderid: Param0) -> ::windows::runtime::Result<()>99 pub fn SnoozeReminder<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>>(reminderid: Param0) -> ::windows::runtime::Result<()> { 100 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).31)(::std::mem::transmute_copy(this), reminderid.into_param().abi()).ok() }) 101 } 102 #[cfg(feature = "Foundation")] SnoozeReminderForSpecifiedTime<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TimeSpan>>(reminderid: Param0, timespan: Param1) -> ::windows::runtime::Result<()>103 pub fn SnoozeReminderForSpecifiedTime<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>, Param1: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TimeSpan>>(reminderid: Param0, timespan: Param1) -> ::windows::runtime::Result<()> { 104 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).32)(::std::mem::transmute_copy(this), reminderid.into_param().abi(), timespan.into_param().abi()).ok() }) 105 } DismissReminder<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>>(reminderid: Param0) -> ::windows::runtime::Result<()>106 pub fn DismissReminder<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::GUID>>(reminderid: Param0) -> ::windows::runtime::Result<()> { 107 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).33)(::std::mem::transmute_copy(this), reminderid.into_param().abi()).ok() }) 108 } GetMediaMetadata() -> ::windows::runtime::Result<MediaMetadata>109 pub fn GetMediaMetadata() -> ::windows::runtime::Result<MediaMetadata> { 110 Self::IAccessoryManager(|this| unsafe { 111 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 112 (::windows::runtime::Interface::vtable(this).34)(::std::mem::transmute_copy(this), &mut result__).from_abi::<MediaMetadata>(result__) 113 }) 114 } MediaPlaybackCapabilities() -> ::windows::runtime::Result<PlaybackCapability>115 pub fn MediaPlaybackCapabilities() -> ::windows::runtime::Result<PlaybackCapability> { 116 Self::IAccessoryManager(|this| unsafe { 117 let mut result__: PlaybackCapability = ::std::mem::zeroed(); 118 (::windows::runtime::Interface::vtable(this).35)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PlaybackCapability>(result__) 119 }) 120 } MediaPlaybackStatus() -> ::windows::runtime::Result<PlaybackStatus>121 pub fn MediaPlaybackStatus() -> ::windows::runtime::Result<PlaybackStatus> { 122 Self::IAccessoryManager(|this| unsafe { 123 let mut result__: PlaybackStatus = ::std::mem::zeroed(); 124 (::windows::runtime::Interface::vtable(this).36)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PlaybackStatus>(result__) 125 }) 126 } PerformMediaPlaybackCommand(command: PlaybackCommand) -> ::windows::runtime::Result<()>127 pub fn PerformMediaPlaybackCommand(command: PlaybackCommand) -> ::windows::runtime::Result<()> { 128 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).37)(::std::mem::transmute_copy(this), command).ok() }) 129 } DoNotDisturbEnabled() -> ::windows::runtime::Result<bool>130 pub fn DoNotDisturbEnabled() -> ::windows::runtime::Result<bool> { 131 Self::IAccessoryManager(|this| unsafe { 132 let mut result__: bool = ::std::mem::zeroed(); 133 (::windows::runtime::Interface::vtable(this).38)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 134 }) 135 } DrivingModeEnabled() -> ::windows::runtime::Result<bool>136 pub fn DrivingModeEnabled() -> ::windows::runtime::Result<bool> { 137 Self::IAccessoryManager(|this| unsafe { 138 let mut result__: bool = ::std::mem::zeroed(); 139 (::windows::runtime::Interface::vtable(this).39)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 140 }) 141 } BatterySaverState() -> ::windows::runtime::Result<bool>142 pub fn BatterySaverState() -> ::windows::runtime::Result<bool> { 143 Self::IAccessoryManager(|this| unsafe { 144 let mut result__: bool = ::std::mem::zeroed(); 145 (::windows::runtime::Interface::vtable(this).40)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 146 }) 147 } 148 #[cfg(feature = "Foundation_Collections")] GetApps() -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, AppNotificationInfo>>149 pub fn GetApps() -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, AppNotificationInfo>> { 150 Self::IAccessoryManager(|this| unsafe { 151 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 152 (::windows::runtime::Interface::vtable(this).41)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, AppNotificationInfo>>(result__) 153 }) 154 } EnableNotificationsForApplication<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(appid: Param0) -> ::windows::runtime::Result<()>155 pub fn EnableNotificationsForApplication<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(appid: Param0) -> ::windows::runtime::Result<()> { 156 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).42)(::std::mem::transmute_copy(this), appid.into_param().abi()).ok() }) 157 } DisableNotificationsForApplication<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(appid: Param0) -> ::windows::runtime::Result<()>158 pub fn DisableNotificationsForApplication<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(appid: Param0) -> ::windows::runtime::Result<()> { 159 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).43)(::std::mem::transmute_copy(this), appid.into_param().abi()).ok() }) 160 } IsNotificationEnabledForApplication<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(appid: Param0) -> ::windows::runtime::Result<bool>161 pub fn IsNotificationEnabledForApplication<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(appid: Param0) -> ::windows::runtime::Result<bool> { 162 Self::IAccessoryManager(|this| unsafe { 163 let mut result__: bool = ::std::mem::zeroed(); 164 (::windows::runtime::Interface::vtable(this).44)(::std::mem::transmute_copy(this), appid.into_param().abi(), &mut result__).from_abi::<bool>(result__) 165 }) 166 } GetEnabledAccessoryNotificationTypes() -> ::windows::runtime::Result<i32>167 pub fn GetEnabledAccessoryNotificationTypes() -> ::windows::runtime::Result<i32> { 168 Self::IAccessoryManager(|this| unsafe { 169 let mut result__: i32 = ::std::mem::zeroed(); 170 (::windows::runtime::Interface::vtable(this).45)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 171 }) 172 } EnableAccessoryNotificationTypes(accessorynotificationtypes: i32) -> ::windows::runtime::Result<()>173 pub fn EnableAccessoryNotificationTypes(accessorynotificationtypes: i32) -> ::windows::runtime::Result<()> { 174 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).46)(::std::mem::transmute_copy(this), accessorynotificationtypes).ok() }) 175 } DisableAllAccessoryNotificationTypes() -> ::windows::runtime::Result<()>176 pub fn DisableAllAccessoryNotificationTypes() -> ::windows::runtime::Result<()> { 177 Self::IAccessoryManager(|this| unsafe { (::windows::runtime::Interface::vtable(this).47)(::std::mem::transmute_copy(this)).ok() }) 178 } GetUserConsent() -> ::windows::runtime::Result<bool>179 pub fn GetUserConsent() -> ::windows::runtime::Result<bool> { 180 Self::IAccessoryManager(|this| unsafe { 181 let mut result__: bool = ::std::mem::zeroed(); 182 (::windows::runtime::Interface::vtable(this).48)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 183 }) 184 } 185 #[cfg(feature = "Storage_Streams")] GetAppIcon<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(appid: Param0) -> ::windows::runtime::Result<super::super::super::Storage::Streams::IRandomAccessStreamReference>186 pub fn GetAppIcon<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(appid: Param0) -> ::windows::runtime::Result<super::super::super::Storage::Streams::IRandomAccessStreamReference> { 187 Self::IAccessoryManager(|this| unsafe { 188 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 189 (::windows::runtime::Interface::vtable(this).49)(::std::mem::transmute_copy(this), appid.into_param().abi(), &mut result__).from_abi::<super::super::super::Storage::Streams::IRandomAccessStreamReference>(result__) 190 }) 191 } RingDevice() -> ::windows::runtime::Result<()>192 pub fn RingDevice() -> ::windows::runtime::Result<()> { 193 Self::IAccessoryManager2(|this| unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() }) 194 } 195 #[cfg(feature = "Foundation_Collections")] SpeedDialList() -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<SpeedDialEntry>>196 pub fn SpeedDialList() -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<SpeedDialEntry>> { 197 Self::IAccessoryManager2(|this| unsafe { 198 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 199 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Collections::IVectorView<SpeedDialEntry>>(result__) 200 }) 201 } ClearToast<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(instanceid: Param0) -> ::windows::runtime::Result<()>202 pub fn ClearToast<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(instanceid: Param0) -> ::windows::runtime::Result<()> { 203 Self::IAccessoryManager2(|this| unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), instanceid.into_param().abi()).ok() }) 204 } IsPhonePinLocked() -> ::windows::runtime::Result<bool>205 pub fn IsPhonePinLocked() -> ::windows::runtime::Result<bool> { 206 Self::IAccessoryManager2(|this| unsafe { 207 let mut result__: bool = ::std::mem::zeroed(); 208 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 209 }) 210 } IncreaseVolume(step: i32) -> ::windows::runtime::Result<()>211 pub fn IncreaseVolume(step: i32) -> ::windows::runtime::Result<()> { 212 Self::IAccessoryManager2(|this| unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), step).ok() }) 213 } DecreaseVolume(step: i32) -> ::windows::runtime::Result<()>214 pub fn DecreaseVolume(step: i32) -> ::windows::runtime::Result<()> { 215 Self::IAccessoryManager2(|this| unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), step).ok() }) 216 } SetMute(mute: bool) -> ::windows::runtime::Result<()>217 pub fn SetMute(mute: bool) -> ::windows::runtime::Result<()> { 218 Self::IAccessoryManager2(|this| unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), mute).ok() }) 219 } SetRingerVibrate(ringer: bool, vibrate: bool) -> ::windows::runtime::Result<()>220 pub fn SetRingerVibrate(ringer: bool, vibrate: bool) -> ::windows::runtime::Result<()> { 221 Self::IAccessoryManager2(|this| unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), ringer, vibrate).ok() }) 222 } VolumeInfo() -> ::windows::runtime::Result<VolumeInfo>223 pub fn VolumeInfo() -> ::windows::runtime::Result<VolumeInfo> { 224 Self::IAccessoryManager2(|this| unsafe { 225 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 226 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<VolumeInfo>(result__) 227 }) 228 } 229 #[cfg(feature = "Foundation_Collections")] GetAllEmailAccounts() -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<EmailAccountInfo>>230 pub fn GetAllEmailAccounts() -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<EmailAccountInfo>> { 231 Self::IAccessoryManager2(|this| unsafe { 232 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 233 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Collections::IVectorView<EmailAccountInfo>>(result__) 234 }) 235 } 236 #[cfg(feature = "Foundation_Collections")] GetFolders<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(emailaccount: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<EmailFolderInfo>>237 pub fn GetFolders<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(emailaccount: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<EmailFolderInfo>> { 238 Self::IAccessoryManager2(|this| unsafe { 239 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 240 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), emailaccount.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::Collections::IVectorView<EmailFolderInfo>>(result__) 241 }) 242 } EnableEmailNotificationEmailAccount<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(emailaccount: Param0) -> ::windows::runtime::Result<()>243 pub fn EnableEmailNotificationEmailAccount<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(emailaccount: Param0) -> ::windows::runtime::Result<()> { 244 Self::IAccessoryManager2(|this| unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), emailaccount.into_param().abi()).ok() }) 245 } DisableEmailNotificationEmailAccount<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(emailaccount: Param0) -> ::windows::runtime::Result<()>246 pub fn DisableEmailNotificationEmailAccount<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(emailaccount: Param0) -> ::windows::runtime::Result<()> { 247 Self::IAccessoryManager2(|this| unsafe { (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), emailaccount.into_param().abi()).ok() }) 248 } 249 #[cfg(feature = "Foundation_Collections")] EnableEmailNotificationFolderFilter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IVectorView<::windows::runtime::HSTRING>>>(emailaccount: Param0, folders: Param1) -> ::windows::runtime::Result<()>250 pub fn EnableEmailNotificationFolderFilter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IVectorView<::windows::runtime::HSTRING>>>(emailaccount: Param0, folders: Param1) -> ::windows::runtime::Result<()> { 251 Self::IAccessoryManager2(|this| unsafe { (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), emailaccount.into_param().abi(), folders.into_param().abi()).ok() }) 252 } UpdateEmailReadStatus<'a, Param0: ::windows::runtime::IntoParam<'a, BinaryId>>(messageentryid: Param0, isread: bool) -> ::windows::runtime::Result<()>253 pub fn UpdateEmailReadStatus<'a, Param0: ::windows::runtime::IntoParam<'a, BinaryId>>(messageentryid: Param0, isread: bool) -> ::windows::runtime::Result<()> { 254 Self::IAccessoryManager2(|this| unsafe { (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), messageentryid.into_param().abi(), isread).ok() }) 255 } SnoozeAlarmByInstanceId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(instanceid: Param0) -> ::windows::runtime::Result<()>256 pub fn SnoozeAlarmByInstanceId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(instanceid: Param0) -> ::windows::runtime::Result<()> { 257 Self::IAccessoryManager3(|this| unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), instanceid.into_param().abi()).ok() }) 258 } DismissAlarmByInstanceId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(instanceid: Param0) -> ::windows::runtime::Result<()>259 pub fn DismissAlarmByInstanceId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(instanceid: Param0) -> ::windows::runtime::Result<()> { 260 Self::IAccessoryManager3(|this| unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), instanceid.into_param().abi()).ok() }) 261 } SnoozeReminderByInstanceId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(instanceid: Param0) -> ::windows::runtime::Result<()>262 pub fn SnoozeReminderByInstanceId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(instanceid: Param0) -> ::windows::runtime::Result<()> { 263 Self::IAccessoryManager3(|this| unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), instanceid.into_param().abi()).ok() }) 264 } DismissReminderByInstanceId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(instanceid: Param0) -> ::windows::runtime::Result<()>265 pub fn DismissReminderByInstanceId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(instanceid: Param0) -> ::windows::runtime::Result<()> { 266 Self::IAccessoryManager3(|this| unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), instanceid.into_param().abi()).ok() }) 267 } IAccessoryManager<R, F: FnOnce(&IAccessoryManager) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>268 pub fn IAccessoryManager<R, F: FnOnce(&IAccessoryManager) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 269 static mut SHARED: ::windows::runtime::FactoryCache<AccessoryManager, IAccessoryManager> = ::windows::runtime::FactoryCache::new(); 270 unsafe { SHARED.call(callback) } 271 } IAccessoryManager2<R, F: FnOnce(&IAccessoryManager2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>272 pub fn IAccessoryManager2<R, F: FnOnce(&IAccessoryManager2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 273 static mut SHARED: ::windows::runtime::FactoryCache<AccessoryManager, IAccessoryManager2> = ::windows::runtime::FactoryCache::new(); 274 unsafe { SHARED.call(callback) } 275 } IAccessoryManager3<R, F: FnOnce(&IAccessoryManager3) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>276 pub fn IAccessoryManager3<R, F: FnOnce(&IAccessoryManager3) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 277 static mut SHARED: ::windows::runtime::FactoryCache<AccessoryManager, IAccessoryManager3> = ::windows::runtime::FactoryCache::new(); 278 unsafe { SHARED.call(callback) } 279 } 280 } 281 impl ::windows::runtime::RuntimeName for AccessoryManager { 282 const NAME: &'static str = "Windows.Phone.Notification.Management.AccessoryManager"; 283 } 284 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 285 #[repr(transparent)] 286 pub struct AccessoryNotificationType(pub u32); 287 impl AccessoryNotificationType { 288 pub const None: AccessoryNotificationType = AccessoryNotificationType(0u32); 289 pub const Phone: AccessoryNotificationType = AccessoryNotificationType(1u32); 290 pub const Email: AccessoryNotificationType = AccessoryNotificationType(2u32); 291 pub const Reminder: AccessoryNotificationType = AccessoryNotificationType(4u32); 292 pub const Alarm: AccessoryNotificationType = AccessoryNotificationType(8u32); 293 pub const Toast: AccessoryNotificationType = AccessoryNotificationType(16u32); 294 pub const AppUninstalled: AccessoryNotificationType = AccessoryNotificationType(32u32); 295 pub const Dnd: AccessoryNotificationType = AccessoryNotificationType(64u32); 296 pub const DrivingMode: AccessoryNotificationType = AccessoryNotificationType(128u32); 297 pub const BatterySaver: AccessoryNotificationType = AccessoryNotificationType(256u32); 298 pub const Media: AccessoryNotificationType = AccessoryNotificationType(512u32); 299 pub const CortanaTile: AccessoryNotificationType = AccessoryNotificationType(1024u32); 300 pub const ToastCleared: AccessoryNotificationType = AccessoryNotificationType(2048u32); 301 pub const CalendarChanged: AccessoryNotificationType = AccessoryNotificationType(4096u32); 302 pub const VolumeChanged: AccessoryNotificationType = AccessoryNotificationType(8192u32); 303 pub const EmailReadStatusChanged: AccessoryNotificationType = AccessoryNotificationType(16384u32); 304 } 305 impl ::std::convert::From<u32> for AccessoryNotificationType { from(value: u32) -> Self306 fn from(value: u32) -> Self { 307 Self(value) 308 } 309 } 310 unsafe impl ::windows::runtime::Abi for AccessoryNotificationType { 311 type Abi = Self; 312 type DefaultType = Self; 313 } 314 unsafe impl ::windows::runtime::RuntimeType for AccessoryNotificationType { 315 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.AccessoryNotificationType;u4)"); 316 } 317 impl ::std::ops::BitOr for AccessoryNotificationType { 318 type Output = Self; bitor(self, rhs: Self) -> Self319 fn bitor(self, rhs: Self) -> Self { 320 Self(self.0 | rhs.0) 321 } 322 } 323 impl ::std::ops::BitAnd for AccessoryNotificationType { 324 type Output = Self; bitand(self, rhs: Self) -> Self325 fn bitand(self, rhs: Self) -> Self { 326 Self(self.0 & rhs.0) 327 } 328 } 329 impl ::std::ops::BitOrAssign for AccessoryNotificationType { bitor_assign(&mut self, rhs: Self)330 fn bitor_assign(&mut self, rhs: Self) { 331 self.0.bitor_assign(rhs.0) 332 } 333 } 334 impl ::std::ops::BitAndAssign for AccessoryNotificationType { bitand_assign(&mut self, rhs: Self)335 fn bitand_assign(&mut self, rhs: Self) { 336 self.0.bitand_assign(rhs.0) 337 } 338 } 339 impl ::std::ops::Not for AccessoryNotificationType { 340 type Output = Self; not(self) -> Self341 fn not(self) -> Self { 342 Self(self.0.not()) 343 } 344 } 345 #[repr(transparent)] 346 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 347 pub struct AlarmNotificationTriggerDetails(::windows::runtime::IInspectable); 348 impl AlarmNotificationTriggerDetails { AlarmId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>349 pub fn AlarmId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 350 let this = self; 351 unsafe { 352 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 353 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 354 } 355 } Title(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>356 pub fn Title(&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).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 361 } 362 } 363 #[cfg(feature = "Foundation")] Timestamp(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>364 pub fn Timestamp(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 365 let this = self; 366 unsafe { 367 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 368 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 369 } 370 } ReminderState(&self) -> ::windows::runtime::Result<ReminderState>371 pub fn ReminderState(&self) -> ::windows::runtime::Result<ReminderState> { 372 let this = self; 373 unsafe { 374 let mut result__: ReminderState = ::std::mem::zeroed(); 375 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ReminderState>(result__) 376 } 377 } 378 #[cfg(feature = "Foundation")] TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>379 pub fn TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 380 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 381 unsafe { 382 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 383 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 384 } 385 } AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>386 pub fn AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 387 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 388 unsafe { 389 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 390 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 391 } 392 } AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>393 pub fn AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 394 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 395 unsafe { 396 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 397 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 398 } 399 } AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType>400 pub fn AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType> { 401 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 402 unsafe { 403 let mut result__: AccessoryNotificationType = ::std::mem::zeroed(); 404 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AccessoryNotificationType>(result__) 405 } 406 } StartedProcessing(&self) -> ::windows::runtime::Result<bool>407 pub fn StartedProcessing(&self) -> ::windows::runtime::Result<bool> { 408 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 409 unsafe { 410 let mut result__: bool = ::std::mem::zeroed(); 411 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 412 } 413 } SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()>414 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()> { 415 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 416 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 417 } InstanceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>418 pub fn InstanceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 419 let this = &::windows::runtime::Interface::cast::<IAlarmNotificationTriggerDetails2>(self)?; 420 unsafe { 421 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 422 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 423 } 424 } 425 } 426 unsafe impl ::windows::runtime::RuntimeType for AlarmNotificationTriggerDetails { 427 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.AlarmNotificationTriggerDetails;{38f5fa30-c738-4da2-908c-775d83c36abb})"); 428 } 429 unsafe impl ::windows::runtime::Interface for AlarmNotificationTriggerDetails { 430 type Vtable = IAlarmNotificationTriggerDetails_abi; 431 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(955644464, 51000, 19874, [144, 140, 119, 93, 131, 195, 106, 187]); 432 } 433 impl ::windows::runtime::RuntimeName for AlarmNotificationTriggerDetails { 434 const NAME: &'static str = "Windows.Phone.Notification.Management.AlarmNotificationTriggerDetails"; 435 } 436 impl ::std::convert::From<AlarmNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: AlarmNotificationTriggerDetails) -> Self437 fn from(value: AlarmNotificationTriggerDetails) -> Self { 438 unsafe { ::std::mem::transmute(value) } 439 } 440 } 441 impl ::std::convert::From<&AlarmNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: &AlarmNotificationTriggerDetails) -> Self442 fn from(value: &AlarmNotificationTriggerDetails) -> Self { 443 ::std::convert::From::from(::std::clone::Clone::clone(value)) 444 } 445 } 446 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for AlarmNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>447 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 448 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 449 } 450 } 451 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &AlarmNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>452 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 453 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 454 } 455 } 456 impl ::std::convert::From<AlarmNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: AlarmNotificationTriggerDetails) -> Self457 fn from(value: AlarmNotificationTriggerDetails) -> Self { 458 value.0 459 } 460 } 461 impl ::std::convert::From<&AlarmNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: &AlarmNotificationTriggerDetails) -> Self462 fn from(value: &AlarmNotificationTriggerDetails) -> Self { 463 value.0.clone() 464 } 465 } 466 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for AlarmNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>467 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 468 ::windows::runtime::Param::Owned(self.0) 469 } 470 } 471 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a AlarmNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>472 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 473 ::windows::runtime::Param::Borrowed(&self.0) 474 } 475 } 476 impl ::std::convert::TryFrom<AlarmNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 477 type Error = ::windows::runtime::Error; try_from(value: AlarmNotificationTriggerDetails) -> ::windows::runtime::Result<Self>478 fn try_from(value: AlarmNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 479 ::std::convert::TryFrom::try_from(&value) 480 } 481 } 482 impl ::std::convert::TryFrom<&AlarmNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 483 type Error = ::windows::runtime::Error; try_from(value: &AlarmNotificationTriggerDetails) -> ::windows::runtime::Result<Self>484 fn try_from(value: &AlarmNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 485 ::windows::runtime::Interface::cast(value) 486 } 487 } 488 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for AlarmNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>489 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 490 ::windows::runtime::IntoParam::into_param(&self) 491 } 492 } 493 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for &AlarmNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>494 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 495 ::std::convert::TryInto::<IAccessoryNotificationTriggerDetails>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 496 } 497 } 498 #[repr(transparent)] 499 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 500 pub struct AppNotificationInfo(::windows::runtime::IInspectable); 501 impl AppNotificationInfo { Id(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>502 pub fn Id(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 503 let this = self; 504 unsafe { 505 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 506 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 507 } 508 } Name(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>509 pub fn Name(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 510 let this = self; 511 unsafe { 512 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 513 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 514 } 515 } 516 } 517 unsafe impl ::windows::runtime::RuntimeType for AppNotificationInfo { 518 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.AppNotificationInfo;{2157bea5-e286-45d3-9bea-f790fc216e0e})"); 519 } 520 unsafe impl ::windows::runtime::Interface for AppNotificationInfo { 521 type Vtable = IAppNotificationInfo_abi; 522 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(559398565, 57990, 17875, [155, 234, 247, 144, 252, 33, 110, 14]); 523 } 524 impl ::windows::runtime::RuntimeName for AppNotificationInfo { 525 const NAME: &'static str = "Windows.Phone.Notification.Management.AppNotificationInfo"; 526 } 527 impl ::std::convert::From<AppNotificationInfo> for ::windows::runtime::IUnknown { from(value: AppNotificationInfo) -> Self528 fn from(value: AppNotificationInfo) -> Self { 529 unsafe { ::std::mem::transmute(value) } 530 } 531 } 532 impl ::std::convert::From<&AppNotificationInfo> for ::windows::runtime::IUnknown { from(value: &AppNotificationInfo) -> Self533 fn from(value: &AppNotificationInfo) -> Self { 534 ::std::convert::From::from(::std::clone::Clone::clone(value)) 535 } 536 } 537 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for AppNotificationInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>538 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 539 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 540 } 541 } 542 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &AppNotificationInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>543 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 544 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 545 } 546 } 547 impl ::std::convert::From<AppNotificationInfo> for ::windows::runtime::IInspectable { from(value: AppNotificationInfo) -> Self548 fn from(value: AppNotificationInfo) -> Self { 549 value.0 550 } 551 } 552 impl ::std::convert::From<&AppNotificationInfo> for ::windows::runtime::IInspectable { from(value: &AppNotificationInfo) -> Self553 fn from(value: &AppNotificationInfo) -> Self { 554 value.0.clone() 555 } 556 } 557 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for AppNotificationInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>558 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 559 ::windows::runtime::Param::Owned(self.0) 560 } 561 } 562 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a AppNotificationInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>563 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 564 ::windows::runtime::Param::Borrowed(&self.0) 565 } 566 } 567 #[repr(transparent)] 568 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 569 pub struct BinaryId(::windows::runtime::IInspectable); 570 impl BinaryId { Id(&self) -> ::windows::runtime::Result<u8>571 pub fn Id(&self) -> ::windows::runtime::Result<u8> { 572 let this = self; 573 unsafe { 574 let mut result__: u8 = ::std::mem::zeroed(); 575 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u8>(result__) 576 } 577 } Length(&self) -> ::windows::runtime::Result<u32>578 pub fn Length(&self) -> ::windows::runtime::Result<u32> { 579 let this = self; 580 unsafe { 581 let mut result__: u32 = ::std::mem::zeroed(); 582 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 583 } 584 } 585 } 586 unsafe impl ::windows::runtime::RuntimeType for BinaryId { 587 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.BinaryId;{4f0da531-5595-44b4-9181-ce4efa3fc168})"); 588 } 589 unsafe impl ::windows::runtime::Interface for BinaryId { 590 type Vtable = IBinaryId_abi; 591 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1326294321, 21909, 17588, [145, 129, 206, 78, 250, 63, 193, 104]); 592 } 593 impl ::windows::runtime::RuntimeName for BinaryId { 594 const NAME: &'static str = "Windows.Phone.Notification.Management.BinaryId"; 595 } 596 impl ::std::convert::From<BinaryId> for ::windows::runtime::IUnknown { from(value: BinaryId) -> Self597 fn from(value: BinaryId) -> Self { 598 unsafe { ::std::mem::transmute(value) } 599 } 600 } 601 impl ::std::convert::From<&BinaryId> for ::windows::runtime::IUnknown { from(value: &BinaryId) -> Self602 fn from(value: &BinaryId) -> Self { 603 ::std::convert::From::from(::std::clone::Clone::clone(value)) 604 } 605 } 606 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BinaryId { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>607 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 608 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 609 } 610 } 611 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BinaryId { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>612 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 613 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 614 } 615 } 616 impl ::std::convert::From<BinaryId> for ::windows::runtime::IInspectable { from(value: BinaryId) -> Self617 fn from(value: BinaryId) -> Self { 618 value.0 619 } 620 } 621 impl ::std::convert::From<&BinaryId> for ::windows::runtime::IInspectable { from(value: &BinaryId) -> Self622 fn from(value: &BinaryId) -> Self { 623 value.0.clone() 624 } 625 } 626 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BinaryId { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>627 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 628 ::windows::runtime::Param::Owned(self.0) 629 } 630 } 631 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BinaryId { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>632 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 633 ::windows::runtime::Param::Borrowed(&self.0) 634 } 635 } 636 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 637 #[repr(transparent)] 638 pub struct CalendarChangedEvent(pub i32); 639 impl CalendarChangedEvent { 640 pub const LostEvents: CalendarChangedEvent = CalendarChangedEvent(0i32); 641 pub const AppointmentAdded: CalendarChangedEvent = CalendarChangedEvent(1i32); 642 pub const AppointmentChanged: CalendarChangedEvent = CalendarChangedEvent(2i32); 643 pub const AppointmentDeleted: CalendarChangedEvent = CalendarChangedEvent(3i32); 644 pub const CalendarAdded: CalendarChangedEvent = CalendarChangedEvent(4i32); 645 pub const CalendarChanged: CalendarChangedEvent = CalendarChangedEvent(5i32); 646 pub const CalendarDeleted: CalendarChangedEvent = CalendarChangedEvent(6i32); 647 } 648 impl ::std::convert::From<i32> for CalendarChangedEvent { from(value: i32) -> Self649 fn from(value: i32) -> Self { 650 Self(value) 651 } 652 } 653 unsafe impl ::windows::runtime::Abi for CalendarChangedEvent { 654 type Abi = Self; 655 type DefaultType = Self; 656 } 657 unsafe impl ::windows::runtime::RuntimeType for CalendarChangedEvent { 658 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.CalendarChangedEvent;i4)"); 659 } 660 #[repr(transparent)] 661 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 662 pub struct CalendarChangedNotificationTriggerDetails(::windows::runtime::IInspectable); 663 impl CalendarChangedNotificationTriggerDetails { EventType(&self) -> ::windows::runtime::Result<CalendarChangedEvent>664 pub fn EventType(&self) -> ::windows::runtime::Result<CalendarChangedEvent> { 665 let this = self; 666 unsafe { 667 let mut result__: CalendarChangedEvent = ::std::mem::zeroed(); 668 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CalendarChangedEvent>(result__) 669 } 670 } ItemId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>671 pub fn ItemId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 672 let this = self; 673 unsafe { 674 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 675 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 676 } 677 } 678 #[cfg(feature = "Foundation")] TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>679 pub fn TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 680 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 681 unsafe { 682 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 683 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 684 } 685 } AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>686 pub fn AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 687 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 688 unsafe { 689 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 690 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 691 } 692 } AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>693 pub fn AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 694 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 695 unsafe { 696 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 697 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 698 } 699 } AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType>700 pub fn AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType> { 701 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 702 unsafe { 703 let mut result__: AccessoryNotificationType = ::std::mem::zeroed(); 704 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AccessoryNotificationType>(result__) 705 } 706 } StartedProcessing(&self) -> ::windows::runtime::Result<bool>707 pub fn StartedProcessing(&self) -> ::windows::runtime::Result<bool> { 708 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 709 unsafe { 710 let mut result__: bool = ::std::mem::zeroed(); 711 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 712 } 713 } SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()>714 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()> { 715 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 716 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 717 } 718 } 719 unsafe impl ::windows::runtime::RuntimeType for CalendarChangedNotificationTriggerDetails { 720 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.CalendarChangedNotificationTriggerDetails;{4b8a3bfc-279d-42ab-9c68-3e87977bf216})"); 721 } 722 unsafe impl ::windows::runtime::Interface for CalendarChangedNotificationTriggerDetails { 723 type Vtable = ICalendarChangedNotificationTriggerDetails_abi; 724 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1267350524, 10141, 17067, [156, 104, 62, 135, 151, 123, 242, 22]); 725 } 726 impl ::windows::runtime::RuntimeName for CalendarChangedNotificationTriggerDetails { 727 const NAME: &'static str = "Windows.Phone.Notification.Management.CalendarChangedNotificationTriggerDetails"; 728 } 729 impl ::std::convert::From<CalendarChangedNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: CalendarChangedNotificationTriggerDetails) -> Self730 fn from(value: CalendarChangedNotificationTriggerDetails) -> Self { 731 unsafe { ::std::mem::transmute(value) } 732 } 733 } 734 impl ::std::convert::From<&CalendarChangedNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: &CalendarChangedNotificationTriggerDetails) -> Self735 fn from(value: &CalendarChangedNotificationTriggerDetails) -> Self { 736 ::std::convert::From::from(::std::clone::Clone::clone(value)) 737 } 738 } 739 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CalendarChangedNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>740 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 741 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 742 } 743 } 744 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CalendarChangedNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>745 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 746 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 747 } 748 } 749 impl ::std::convert::From<CalendarChangedNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: CalendarChangedNotificationTriggerDetails) -> Self750 fn from(value: CalendarChangedNotificationTriggerDetails) -> Self { 751 value.0 752 } 753 } 754 impl ::std::convert::From<&CalendarChangedNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: &CalendarChangedNotificationTriggerDetails) -> Self755 fn from(value: &CalendarChangedNotificationTriggerDetails) -> Self { 756 value.0.clone() 757 } 758 } 759 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CalendarChangedNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>760 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 761 ::windows::runtime::Param::Owned(self.0) 762 } 763 } 764 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CalendarChangedNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>765 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 766 ::windows::runtime::Param::Borrowed(&self.0) 767 } 768 } 769 impl ::std::convert::TryFrom<CalendarChangedNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 770 type Error = ::windows::runtime::Error; try_from(value: CalendarChangedNotificationTriggerDetails) -> ::windows::runtime::Result<Self>771 fn try_from(value: CalendarChangedNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 772 ::std::convert::TryFrom::try_from(&value) 773 } 774 } 775 impl ::std::convert::TryFrom<&CalendarChangedNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 776 type Error = ::windows::runtime::Error; try_from(value: &CalendarChangedNotificationTriggerDetails) -> ::windows::runtime::Result<Self>777 fn try_from(value: &CalendarChangedNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 778 ::windows::runtime::Interface::cast(value) 779 } 780 } 781 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for CalendarChangedNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>782 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 783 ::windows::runtime::IntoParam::into_param(&self) 784 } 785 } 786 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for &CalendarChangedNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>787 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 788 ::std::convert::TryInto::<IAccessoryNotificationTriggerDetails>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 789 } 790 } 791 #[repr(transparent)] 792 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 793 pub struct CortanaTileNotificationTriggerDetails(::windows::runtime::IInspectable); 794 impl CortanaTileNotificationTriggerDetails { TileId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>795 pub fn TileId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 796 let this = self; 797 unsafe { 798 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 799 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 800 } 801 } Content(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>802 pub fn Content(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 803 let this = self; 804 unsafe { 805 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 806 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 807 } 808 } LargeContent1(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>809 pub fn LargeContent1(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 810 let this = self; 811 unsafe { 812 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 813 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 814 } 815 } LargeContent2(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>816 pub fn LargeContent2(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 817 let this = self; 818 unsafe { 819 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 820 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 821 } 822 } EmphasizedText(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>823 pub fn EmphasizedText(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 824 let this = self; 825 unsafe { 826 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 827 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 828 } 829 } NonWrappedSmallContent1(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>830 pub fn NonWrappedSmallContent1(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 831 let this = self; 832 unsafe { 833 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 834 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 835 } 836 } NonWrappedSmallContent2(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>837 pub fn NonWrappedSmallContent2(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 838 let this = self; 839 unsafe { 840 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 841 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 842 } 843 } NonWrappedSmallContent3(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>844 pub fn NonWrappedSmallContent3(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 845 let this = self; 846 unsafe { 847 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 848 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 849 } 850 } NonWrappedSmallContent4(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>851 pub fn NonWrappedSmallContent4(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 852 let this = self; 853 unsafe { 854 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 855 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 856 } 857 } Source(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>858 pub fn Source(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 859 let this = self; 860 unsafe { 861 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 862 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 863 } 864 } 865 #[cfg(feature = "Foundation")] TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>866 pub fn TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 867 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 868 unsafe { 869 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 870 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 871 } 872 } AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>873 pub fn AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 874 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 875 unsafe { 876 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 877 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 878 } 879 } AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>880 pub fn AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 881 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 882 unsafe { 883 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 884 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 885 } 886 } AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType>887 pub fn AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType> { 888 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 889 unsafe { 890 let mut result__: AccessoryNotificationType = ::std::mem::zeroed(); 891 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AccessoryNotificationType>(result__) 892 } 893 } StartedProcessing(&self) -> ::windows::runtime::Result<bool>894 pub fn StartedProcessing(&self) -> ::windows::runtime::Result<bool> { 895 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 896 unsafe { 897 let mut result__: bool = ::std::mem::zeroed(); 898 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 899 } 900 } SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()>901 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()> { 902 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 903 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 904 } 905 } 906 unsafe impl ::windows::runtime::RuntimeType for CortanaTileNotificationTriggerDetails { 907 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.CortanaTileNotificationTriggerDetails;{dc0f01d5-1489-46bb-b73b-7f90067ecf27})"); 908 } 909 unsafe impl ::windows::runtime::Interface for CortanaTileNotificationTriggerDetails { 910 type Vtable = ICortanaTileNotificationTriggerDetails_abi; 911 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3691971029, 5257, 18107, [183, 59, 127, 144, 6, 126, 207, 39]); 912 } 913 impl ::windows::runtime::RuntimeName for CortanaTileNotificationTriggerDetails { 914 const NAME: &'static str = "Windows.Phone.Notification.Management.CortanaTileNotificationTriggerDetails"; 915 } 916 impl ::std::convert::From<CortanaTileNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: CortanaTileNotificationTriggerDetails) -> Self917 fn from(value: CortanaTileNotificationTriggerDetails) -> Self { 918 unsafe { ::std::mem::transmute(value) } 919 } 920 } 921 impl ::std::convert::From<&CortanaTileNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: &CortanaTileNotificationTriggerDetails) -> Self922 fn from(value: &CortanaTileNotificationTriggerDetails) -> Self { 923 ::std::convert::From::from(::std::clone::Clone::clone(value)) 924 } 925 } 926 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CortanaTileNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>927 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 928 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 929 } 930 } 931 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CortanaTileNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>932 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 933 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 934 } 935 } 936 impl ::std::convert::From<CortanaTileNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: CortanaTileNotificationTriggerDetails) -> Self937 fn from(value: CortanaTileNotificationTriggerDetails) -> Self { 938 value.0 939 } 940 } 941 impl ::std::convert::From<&CortanaTileNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: &CortanaTileNotificationTriggerDetails) -> Self942 fn from(value: &CortanaTileNotificationTriggerDetails) -> Self { 943 value.0.clone() 944 } 945 } 946 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CortanaTileNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>947 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 948 ::windows::runtime::Param::Owned(self.0) 949 } 950 } 951 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CortanaTileNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>952 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 953 ::windows::runtime::Param::Borrowed(&self.0) 954 } 955 } 956 impl ::std::convert::TryFrom<CortanaTileNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 957 type Error = ::windows::runtime::Error; try_from(value: CortanaTileNotificationTriggerDetails) -> ::windows::runtime::Result<Self>958 fn try_from(value: CortanaTileNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 959 ::std::convert::TryFrom::try_from(&value) 960 } 961 } 962 impl ::std::convert::TryFrom<&CortanaTileNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 963 type Error = ::windows::runtime::Error; try_from(value: &CortanaTileNotificationTriggerDetails) -> ::windows::runtime::Result<Self>964 fn try_from(value: &CortanaTileNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 965 ::windows::runtime::Interface::cast(value) 966 } 967 } 968 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for CortanaTileNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>969 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 970 ::windows::runtime::IntoParam::into_param(&self) 971 } 972 } 973 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for &CortanaTileNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>974 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 975 ::std::convert::TryInto::<IAccessoryNotificationTriggerDetails>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 976 } 977 } 978 #[repr(transparent)] 979 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 980 pub struct EmailAccountInfo(::windows::runtime::IInspectable); 981 impl EmailAccountInfo { DisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>982 pub fn DisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 983 let this = self; 984 unsafe { 985 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 986 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 987 } 988 } IsNotificationEnabled(&self) -> ::windows::runtime::Result<bool>989 pub fn IsNotificationEnabled(&self) -> ::windows::runtime::Result<bool> { 990 let this = self; 991 unsafe { 992 let mut result__: bool = ::std::mem::zeroed(); 993 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 994 } 995 } 996 } 997 unsafe impl ::windows::runtime::RuntimeType for EmailAccountInfo { 998 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.EmailAccountInfo;{dfbc02ab-bda0-4568-927e-b2ede35818a1})"); 999 } 1000 unsafe impl ::windows::runtime::Interface for EmailAccountInfo { 1001 type Vtable = IEmailAccountInfo_abi; 1002 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3753640619, 48544, 17768, [146, 126, 178, 237, 227, 88, 24, 161]); 1003 } 1004 impl ::windows::runtime::RuntimeName for EmailAccountInfo { 1005 const NAME: &'static str = "Windows.Phone.Notification.Management.EmailAccountInfo"; 1006 } 1007 impl ::std::convert::From<EmailAccountInfo> for ::windows::runtime::IUnknown { from(value: EmailAccountInfo) -> Self1008 fn from(value: EmailAccountInfo) -> Self { 1009 unsafe { ::std::mem::transmute(value) } 1010 } 1011 } 1012 impl ::std::convert::From<&EmailAccountInfo> for ::windows::runtime::IUnknown { from(value: &EmailAccountInfo) -> Self1013 fn from(value: &EmailAccountInfo) -> Self { 1014 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1015 } 1016 } 1017 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for EmailAccountInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1018 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1019 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1020 } 1021 } 1022 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &EmailAccountInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1023 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1024 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1025 } 1026 } 1027 impl ::std::convert::From<EmailAccountInfo> for ::windows::runtime::IInspectable { from(value: EmailAccountInfo) -> Self1028 fn from(value: EmailAccountInfo) -> Self { 1029 value.0 1030 } 1031 } 1032 impl ::std::convert::From<&EmailAccountInfo> for ::windows::runtime::IInspectable { from(value: &EmailAccountInfo) -> Self1033 fn from(value: &EmailAccountInfo) -> Self { 1034 value.0.clone() 1035 } 1036 } 1037 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for EmailAccountInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1038 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1039 ::windows::runtime::Param::Owned(self.0) 1040 } 1041 } 1042 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a EmailAccountInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1043 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1044 ::windows::runtime::Param::Borrowed(&self.0) 1045 } 1046 } 1047 #[repr(transparent)] 1048 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1049 pub struct EmailFolderInfo(::windows::runtime::IInspectable); 1050 impl EmailFolderInfo { DisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1051 pub fn DisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1052 let this = self; 1053 unsafe { 1054 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1055 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1056 } 1057 } IsNotificationEnabled(&self) -> ::windows::runtime::Result<bool>1058 pub fn IsNotificationEnabled(&self) -> ::windows::runtime::Result<bool> { 1059 let this = self; 1060 unsafe { 1061 let mut result__: bool = ::std::mem::zeroed(); 1062 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1063 } 1064 } 1065 } 1066 unsafe impl ::windows::runtime::RuntimeType for EmailFolderInfo { 1067 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.EmailFolderInfo;{c207150e-e237-46d6-90e6-4f529eeac1e2})"); 1068 } 1069 unsafe impl ::windows::runtime::Interface for EmailFolderInfo { 1070 type Vtable = IEmailFolderInfo_abi; 1071 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3255244046, 57911, 18134, [144, 230, 79, 82, 158, 234, 193, 226]); 1072 } 1073 impl ::windows::runtime::RuntimeName for EmailFolderInfo { 1074 const NAME: &'static str = "Windows.Phone.Notification.Management.EmailFolderInfo"; 1075 } 1076 impl ::std::convert::From<EmailFolderInfo> for ::windows::runtime::IUnknown { from(value: EmailFolderInfo) -> Self1077 fn from(value: EmailFolderInfo) -> Self { 1078 unsafe { ::std::mem::transmute(value) } 1079 } 1080 } 1081 impl ::std::convert::From<&EmailFolderInfo> for ::windows::runtime::IUnknown { from(value: &EmailFolderInfo) -> Self1082 fn from(value: &EmailFolderInfo) -> Self { 1083 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1084 } 1085 } 1086 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for EmailFolderInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1087 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1088 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1089 } 1090 } 1091 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &EmailFolderInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1092 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1093 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1094 } 1095 } 1096 impl ::std::convert::From<EmailFolderInfo> for ::windows::runtime::IInspectable { from(value: EmailFolderInfo) -> Self1097 fn from(value: EmailFolderInfo) -> Self { 1098 value.0 1099 } 1100 } 1101 impl ::std::convert::From<&EmailFolderInfo> for ::windows::runtime::IInspectable { from(value: &EmailFolderInfo) -> Self1102 fn from(value: &EmailFolderInfo) -> Self { 1103 value.0.clone() 1104 } 1105 } 1106 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for EmailFolderInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1107 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1108 ::windows::runtime::Param::Owned(self.0) 1109 } 1110 } 1111 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a EmailFolderInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1112 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1113 ::windows::runtime::Param::Borrowed(&self.0) 1114 } 1115 } 1116 #[repr(transparent)] 1117 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1118 pub struct EmailNotificationTriggerDetails(::windows::runtime::IInspectable); 1119 impl EmailNotificationTriggerDetails { AccountName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1120 pub fn AccountName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1121 let this = self; 1122 unsafe { 1123 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1124 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1125 } 1126 } ParentFolderName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1127 pub fn ParentFolderName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1128 let this = self; 1129 unsafe { 1130 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1131 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1132 } 1133 } SenderName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1134 pub fn SenderName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1135 let this = self; 1136 unsafe { 1137 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1138 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1139 } 1140 } SenderAddress(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1141 pub fn SenderAddress(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1142 let this = self; 1143 unsafe { 1144 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1145 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1146 } 1147 } 1148 #[cfg(feature = "ApplicationModel_Email")] EmailMessage(&self) -> ::windows::runtime::Result<super::super::super::ApplicationModel::Email::EmailMessage>1149 pub fn EmailMessage(&self) -> ::windows::runtime::Result<super::super::super::ApplicationModel::Email::EmailMessage> { 1150 let this = self; 1151 unsafe { 1152 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1153 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::ApplicationModel::Email::EmailMessage>(result__) 1154 } 1155 } 1156 #[cfg(feature = "Foundation")] Timestamp(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>1157 pub fn Timestamp(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 1158 let this = self; 1159 unsafe { 1160 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 1161 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 1162 } 1163 } 1164 #[cfg(feature = "Foundation")] TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>1165 pub fn TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 1166 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1167 unsafe { 1168 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 1169 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 1170 } 1171 } AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1172 pub fn AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1173 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1174 unsafe { 1175 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1176 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1177 } 1178 } AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1179 pub fn AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1180 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1181 unsafe { 1182 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1183 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1184 } 1185 } AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType>1186 pub fn AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType> { 1187 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1188 unsafe { 1189 let mut result__: AccessoryNotificationType = ::std::mem::zeroed(); 1190 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AccessoryNotificationType>(result__) 1191 } 1192 } StartedProcessing(&self) -> ::windows::runtime::Result<bool>1193 pub fn StartedProcessing(&self) -> ::windows::runtime::Result<bool> { 1194 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1195 unsafe { 1196 let mut result__: bool = ::std::mem::zeroed(); 1197 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1198 } 1199 } SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()>1200 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()> { 1201 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1202 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 1203 } MessageEntryId(&self) -> ::windows::runtime::Result<BinaryId>1204 pub fn MessageEntryId(&self) -> ::windows::runtime::Result<BinaryId> { 1205 let this = &::windows::runtime::Interface::cast::<IEmailNotificationTriggerDetails2>(self)?; 1206 unsafe { 1207 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1208 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<BinaryId>(result__) 1209 } 1210 } 1211 } 1212 unsafe impl ::windows::runtime::RuntimeType for EmailNotificationTriggerDetails { 1213 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.EmailNotificationTriggerDetails;{f3b82612-46cf-4e70-8e0d-7b2e04ab492b})"); 1214 } 1215 unsafe impl ::windows::runtime::Interface for EmailNotificationTriggerDetails { 1216 type Vtable = IEmailNotificationTriggerDetails_abi; 1217 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4088931858, 18127, 20080, [142, 13, 123, 46, 4, 171, 73, 43]); 1218 } 1219 impl ::windows::runtime::RuntimeName for EmailNotificationTriggerDetails { 1220 const NAME: &'static str = "Windows.Phone.Notification.Management.EmailNotificationTriggerDetails"; 1221 } 1222 impl ::std::convert::From<EmailNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: EmailNotificationTriggerDetails) -> Self1223 fn from(value: EmailNotificationTriggerDetails) -> Self { 1224 unsafe { ::std::mem::transmute(value) } 1225 } 1226 } 1227 impl ::std::convert::From<&EmailNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: &EmailNotificationTriggerDetails) -> Self1228 fn from(value: &EmailNotificationTriggerDetails) -> Self { 1229 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1230 } 1231 } 1232 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for EmailNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1233 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1234 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1235 } 1236 } 1237 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &EmailNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1238 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1239 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1240 } 1241 } 1242 impl ::std::convert::From<EmailNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: EmailNotificationTriggerDetails) -> Self1243 fn from(value: EmailNotificationTriggerDetails) -> Self { 1244 value.0 1245 } 1246 } 1247 impl ::std::convert::From<&EmailNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: &EmailNotificationTriggerDetails) -> Self1248 fn from(value: &EmailNotificationTriggerDetails) -> Self { 1249 value.0.clone() 1250 } 1251 } 1252 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for EmailNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1253 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1254 ::windows::runtime::Param::Owned(self.0) 1255 } 1256 } 1257 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a EmailNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1258 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1259 ::windows::runtime::Param::Borrowed(&self.0) 1260 } 1261 } 1262 impl ::std::convert::TryFrom<EmailNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 1263 type Error = ::windows::runtime::Error; try_from(value: EmailNotificationTriggerDetails) -> ::windows::runtime::Result<Self>1264 fn try_from(value: EmailNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 1265 ::std::convert::TryFrom::try_from(&value) 1266 } 1267 } 1268 impl ::std::convert::TryFrom<&EmailNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 1269 type Error = ::windows::runtime::Error; try_from(value: &EmailNotificationTriggerDetails) -> ::windows::runtime::Result<Self>1270 fn try_from(value: &EmailNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 1271 ::windows::runtime::Interface::cast(value) 1272 } 1273 } 1274 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for EmailNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>1275 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 1276 ::windows::runtime::IntoParam::into_param(&self) 1277 } 1278 } 1279 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for &EmailNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>1280 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 1281 ::std::convert::TryInto::<IAccessoryNotificationTriggerDetails>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1282 } 1283 } 1284 #[repr(transparent)] 1285 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1286 pub struct EmailReadNotificationTriggerDetails(::windows::runtime::IInspectable); 1287 impl EmailReadNotificationTriggerDetails { AccountName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1288 pub fn AccountName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1289 let this = self; 1290 unsafe { 1291 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1292 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1293 } 1294 } ParentFolderName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1295 pub fn ParentFolderName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1296 let this = self; 1297 unsafe { 1298 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1299 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1300 } 1301 } MessageEntryId(&self) -> ::windows::runtime::Result<BinaryId>1302 pub fn MessageEntryId(&self) -> ::windows::runtime::Result<BinaryId> { 1303 let this = self; 1304 unsafe { 1305 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1306 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<BinaryId>(result__) 1307 } 1308 } IsRead(&self) -> ::windows::runtime::Result<bool>1309 pub fn IsRead(&self) -> ::windows::runtime::Result<bool> { 1310 let this = self; 1311 unsafe { 1312 let mut result__: bool = ::std::mem::zeroed(); 1313 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1314 } 1315 } 1316 #[cfg(feature = "Foundation")] TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>1317 pub fn TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 1318 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1319 unsafe { 1320 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 1321 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 1322 } 1323 } AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1324 pub fn AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1325 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1326 unsafe { 1327 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1328 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1329 } 1330 } AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1331 pub fn AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1332 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1333 unsafe { 1334 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1335 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1336 } 1337 } AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType>1338 pub fn AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType> { 1339 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1340 unsafe { 1341 let mut result__: AccessoryNotificationType = ::std::mem::zeroed(); 1342 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AccessoryNotificationType>(result__) 1343 } 1344 } StartedProcessing(&self) -> ::windows::runtime::Result<bool>1345 pub fn StartedProcessing(&self) -> ::windows::runtime::Result<bool> { 1346 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1347 unsafe { 1348 let mut result__: bool = ::std::mem::zeroed(); 1349 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1350 } 1351 } SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()>1352 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()> { 1353 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 1354 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 1355 } 1356 } 1357 unsafe impl ::windows::runtime::RuntimeType for EmailReadNotificationTriggerDetails { 1358 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.EmailReadNotificationTriggerDetails;{f5b7a087-06f3-4e3e-8c42-325e67010413})"); 1359 } 1360 unsafe impl ::windows::runtime::Interface for EmailReadNotificationTriggerDetails { 1361 type Vtable = IEmailReadNotificationTriggerDetails_abi; 1362 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4122452103, 1779, 20030, [140, 66, 50, 94, 103, 1, 4, 19]); 1363 } 1364 impl ::windows::runtime::RuntimeName for EmailReadNotificationTriggerDetails { 1365 const NAME: &'static str = "Windows.Phone.Notification.Management.EmailReadNotificationTriggerDetails"; 1366 } 1367 impl ::std::convert::From<EmailReadNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: EmailReadNotificationTriggerDetails) -> Self1368 fn from(value: EmailReadNotificationTriggerDetails) -> Self { 1369 unsafe { ::std::mem::transmute(value) } 1370 } 1371 } 1372 impl ::std::convert::From<&EmailReadNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: &EmailReadNotificationTriggerDetails) -> Self1373 fn from(value: &EmailReadNotificationTriggerDetails) -> Self { 1374 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1375 } 1376 } 1377 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for EmailReadNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1378 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1379 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1380 } 1381 } 1382 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &EmailReadNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1383 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1384 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1385 } 1386 } 1387 impl ::std::convert::From<EmailReadNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: EmailReadNotificationTriggerDetails) -> Self1388 fn from(value: EmailReadNotificationTriggerDetails) -> Self { 1389 value.0 1390 } 1391 } 1392 impl ::std::convert::From<&EmailReadNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: &EmailReadNotificationTriggerDetails) -> Self1393 fn from(value: &EmailReadNotificationTriggerDetails) -> Self { 1394 value.0.clone() 1395 } 1396 } 1397 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for EmailReadNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1398 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1399 ::windows::runtime::Param::Owned(self.0) 1400 } 1401 } 1402 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a EmailReadNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1403 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1404 ::windows::runtime::Param::Borrowed(&self.0) 1405 } 1406 } 1407 impl ::std::convert::TryFrom<EmailReadNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 1408 type Error = ::windows::runtime::Error; try_from(value: EmailReadNotificationTriggerDetails) -> ::windows::runtime::Result<Self>1409 fn try_from(value: EmailReadNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 1410 ::std::convert::TryFrom::try_from(&value) 1411 } 1412 } 1413 impl ::std::convert::TryFrom<&EmailReadNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 1414 type Error = ::windows::runtime::Error; try_from(value: &EmailReadNotificationTriggerDetails) -> ::windows::runtime::Result<Self>1415 fn try_from(value: &EmailReadNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 1416 ::windows::runtime::Interface::cast(value) 1417 } 1418 } 1419 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for EmailReadNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>1420 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 1421 ::windows::runtime::IntoParam::into_param(&self) 1422 } 1423 } 1424 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for &EmailReadNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>1425 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 1426 ::std::convert::TryInto::<IAccessoryNotificationTriggerDetails>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1427 } 1428 } 1429 #[repr(transparent)] 1430 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1431 #[doc(hidden)] 1432 pub struct IAccessoryManager(::windows::runtime::IInspectable); 1433 unsafe impl ::windows::runtime::Interface for IAccessoryManager { 1434 type Vtable = IAccessoryManager_abi; 1435 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(218407212, 34877, 19111, [188, 167, 250, 75, 184, 191, 254, 230]); 1436 } 1437 #[repr(C)] 1438 #[doc(hidden)] 1439 pub struct IAccessoryManager_abi( 1440 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1441 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1442 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1443 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1444 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1445 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1446 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1447 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1448 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdetails: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1449 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1450 #[cfg(not(feature = "Foundation_Collections"))] usize, 1451 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phoneline: ::windows::runtime::GUID, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1452 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phonecallid: u32) -> ::windows::runtime::HRESULT, 1453 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phonecallid: u32, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::HRESULT, 1454 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phonecallid: u32) -> ::windows::runtime::HRESULT, 1455 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phonecallid: u32, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::HRESULT, 1456 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phonecallid: u32) -> ::windows::runtime::HRESULT, 1457 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phonecallid: u32, textresponseid: u32) -> ::windows::runtime::HRESULT, 1458 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phoneline: ::windows::runtime::GUID, phonenumber: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1459 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phoneline: ::windows::runtime::GUID, phonenumber: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::HRESULT, 1460 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phoneline: ::windows::runtime::GUID, phonenumber: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1461 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phoneline: ::windows::runtime::GUID, phonenumber: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, endpoint: PhoneCallAudioEndpoint) -> ::windows::runtime::HRESULT, 1462 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phonecallidtohold: u32, phonecallidonhold: u32) -> ::windows::runtime::HRESULT, 1463 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phonecallid: u32, holdcall: bool) -> ::windows::runtime::HRESULT, 1464 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phonecallid: u32) -> ::windows::runtime::HRESULT, 1465 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 1466 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1467 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: PhoneCallAudioEndpoint) -> ::windows::runtime::HRESULT, 1468 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PhoneCallAudioEndpoint) -> ::windows::runtime::HRESULT, 1469 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, alarmid: ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1470 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, alarmid: ::windows::runtime::GUID, timespan: super::super::super::Foundation::TimeSpan) -> ::windows::runtime::HRESULT, 1471 #[cfg(not(feature = "Foundation"))] usize, 1472 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, alarmid: ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1473 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, reminderid: ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1474 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, reminderid: ::windows::runtime::GUID, timespan: super::super::super::Foundation::TimeSpan) -> ::windows::runtime::HRESULT, 1475 #[cfg(not(feature = "Foundation"))] usize, 1476 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, reminderid: ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1477 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1478 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PlaybackCapability) -> ::windows::runtime::HRESULT, 1479 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PlaybackStatus) -> ::windows::runtime::HRESULT, 1480 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, command: PlaybackCommand) -> ::windows::runtime::HRESULT, 1481 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1482 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1483 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1484 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1485 #[cfg(not(feature = "Foundation_Collections"))] usize, 1486 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, appid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1487 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, appid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1488 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, appid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut bool) -> ::windows::runtime::HRESULT, 1489 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut i32) -> ::windows::runtime::HRESULT, 1490 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, accessorynotificationtypes: i32) -> ::windows::runtime::HRESULT, 1491 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1492 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1493 #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, appid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1494 #[cfg(not(feature = "Storage_Streams"))] usize, 1495 ); 1496 #[repr(transparent)] 1497 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1498 #[doc(hidden)] 1499 pub struct IAccessoryManager2(::windows::runtime::IInspectable); 1500 unsafe impl ::windows::runtime::Interface for IAccessoryManager2 { 1501 type Vtable = IAccessoryManager2_abi; 1502 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3133854797, 54163, 18118, [184, 12, 21, 253, 244, 77, 83, 134]); 1503 } 1504 #[repr(C)] 1505 #[doc(hidden)] 1506 pub struct IAccessoryManager2_abi( 1507 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1508 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1509 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1510 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1511 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1512 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1513 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1514 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1515 #[cfg(not(feature = "Foundation_Collections"))] usize, 1516 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, instanceid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1517 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1518 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, step: i32) -> ::windows::runtime::HRESULT, 1519 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, step: i32) -> ::windows::runtime::HRESULT, 1520 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, mute: bool) -> ::windows::runtime::HRESULT, 1521 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ringer: bool, vibrate: bool) -> ::windows::runtime::HRESULT, 1522 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1523 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1524 #[cfg(not(feature = "Foundation_Collections"))] usize, 1525 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, emailaccount: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1526 #[cfg(not(feature = "Foundation_Collections"))] usize, 1527 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, emailaccount: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1528 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, emailaccount: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1529 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, emailaccount: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, folders: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1530 #[cfg(not(feature = "Foundation_Collections"))] usize, 1531 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, messageentryid: ::windows::runtime::RawPtr, isread: bool) -> ::windows::runtime::HRESULT, 1532 ); 1533 #[repr(transparent)] 1534 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1535 #[doc(hidden)] 1536 pub struct IAccessoryManager3(::windows::runtime::IInspectable); 1537 unsafe impl ::windows::runtime::Interface for IAccessoryManager3 { 1538 type Vtable = IAccessoryManager3_abi; 1539 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2180469047, 60871, 18400, [178, 247, 126, 87, 124, 131, 63, 125]); 1540 } 1541 #[repr(C)] 1542 #[doc(hidden)] 1543 pub struct IAccessoryManager3_abi( 1544 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1545 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1546 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1547 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1548 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1549 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1550 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, instanceid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1551 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, instanceid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1552 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, instanceid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1553 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, instanceid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1554 ); 1555 #[repr(transparent)] 1556 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1557 pub struct IAccessoryNotificationTriggerDetails(::windows::runtime::IInspectable); 1558 unsafe impl ::windows::runtime::Interface for IAccessoryNotificationTriggerDetails { 1559 type Vtable = IAccessoryNotificationTriggerDetails_abi; 1560 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1768466388, 58314, 18891, [140, 135, 44, 17, 205, 255, 150, 70]); 1561 } 1562 impl IAccessoryNotificationTriggerDetails { 1563 #[cfg(feature = "Foundation")] TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>1564 pub fn TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 1565 let this = self; 1566 unsafe { 1567 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 1568 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 1569 } 1570 } AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1571 pub fn AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1572 let this = self; 1573 unsafe { 1574 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1575 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1576 } 1577 } AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1578 pub fn AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1579 let this = self; 1580 unsafe { 1581 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1582 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1583 } 1584 } AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType>1585 pub fn AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType> { 1586 let this = self; 1587 unsafe { 1588 let mut result__: AccessoryNotificationType = ::std::mem::zeroed(); 1589 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AccessoryNotificationType>(result__) 1590 } 1591 } StartedProcessing(&self) -> ::windows::runtime::Result<bool>1592 pub fn StartedProcessing(&self) -> ::windows::runtime::Result<bool> { 1593 let this = self; 1594 unsafe { 1595 let mut result__: bool = ::std::mem::zeroed(); 1596 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1597 } 1598 } SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()>1599 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()> { 1600 let this = self; 1601 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 1602 } 1603 } 1604 unsafe impl ::windows::runtime::RuntimeType for IAccessoryNotificationTriggerDetails { 1605 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"{6968a7d4-e3ca-49cb-8c87-2c11cdff9646}"); 1606 } 1607 impl ::std::convert::From<IAccessoryNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: IAccessoryNotificationTriggerDetails) -> Self1608 fn from(value: IAccessoryNotificationTriggerDetails) -> Self { 1609 unsafe { ::std::mem::transmute(value) } 1610 } 1611 } 1612 impl ::std::convert::From<&IAccessoryNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: &IAccessoryNotificationTriggerDetails) -> Self1613 fn from(value: &IAccessoryNotificationTriggerDetails) -> Self { 1614 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1615 } 1616 } 1617 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IAccessoryNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1618 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1619 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1620 } 1621 } 1622 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IAccessoryNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1623 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1624 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1625 } 1626 } 1627 impl ::std::convert::From<IAccessoryNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: IAccessoryNotificationTriggerDetails) -> Self1628 fn from(value: IAccessoryNotificationTriggerDetails) -> Self { 1629 value.0 1630 } 1631 } 1632 impl ::std::convert::From<&IAccessoryNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: &IAccessoryNotificationTriggerDetails) -> Self1633 fn from(value: &IAccessoryNotificationTriggerDetails) -> Self { 1634 value.0.clone() 1635 } 1636 } 1637 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for IAccessoryNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1638 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1639 ::windows::runtime::Param::Owned(self.0) 1640 } 1641 } 1642 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a IAccessoryNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1643 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1644 ::windows::runtime::Param::Borrowed(&self.0) 1645 } 1646 } 1647 #[repr(C)] 1648 #[doc(hidden)] 1649 pub struct IAccessoryNotificationTriggerDetails_abi( 1650 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1651 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1652 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1653 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1654 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1655 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1656 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 1657 #[cfg(not(feature = "Foundation"))] usize, 1658 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1659 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1660 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut AccessoryNotificationType) -> ::windows::runtime::HRESULT, 1661 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1662 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 1663 ); 1664 #[repr(transparent)] 1665 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1666 #[doc(hidden)] 1667 pub struct IAlarmNotificationTriggerDetails(::windows::runtime::IInspectable); 1668 unsafe impl ::windows::runtime::Interface for IAlarmNotificationTriggerDetails { 1669 type Vtable = IAlarmNotificationTriggerDetails_abi; 1670 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(955644464, 51000, 19874, [144, 140, 119, 93, 131, 195, 106, 187]); 1671 } 1672 #[repr(C)] 1673 #[doc(hidden)] 1674 pub struct IAlarmNotificationTriggerDetails_abi( 1675 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1676 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1677 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1678 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1679 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1680 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1681 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1682 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1683 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 1684 #[cfg(not(feature = "Foundation"))] usize, 1685 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ReminderState) -> ::windows::runtime::HRESULT, 1686 ); 1687 #[repr(transparent)] 1688 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1689 #[doc(hidden)] 1690 pub struct IAlarmNotificationTriggerDetails2(::windows::runtime::IInspectable); 1691 unsafe impl ::windows::runtime::Interface for IAlarmNotificationTriggerDetails2 { 1692 type Vtable = IAlarmNotificationTriggerDetails2_abi; 1693 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3474382954, 29013, 16638, [169, 194, 123, 210, 18, 126, 248, 83]); 1694 } 1695 #[repr(C)] 1696 #[doc(hidden)] 1697 pub struct IAlarmNotificationTriggerDetails2_abi( 1698 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1699 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1700 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1701 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1702 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1703 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1704 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1705 ); 1706 #[repr(transparent)] 1707 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1708 #[doc(hidden)] 1709 pub struct IAppNotificationInfo(::windows::runtime::IInspectable); 1710 unsafe impl ::windows::runtime::Interface for IAppNotificationInfo { 1711 type Vtable = IAppNotificationInfo_abi; 1712 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(559398565, 57990, 17875, [155, 234, 247, 144, 252, 33, 110, 14]); 1713 } 1714 #[repr(C)] 1715 #[doc(hidden)] 1716 pub struct IAppNotificationInfo_abi( 1717 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1718 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1719 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1720 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1721 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1722 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1723 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1724 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1725 ); 1726 #[repr(transparent)] 1727 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1728 #[doc(hidden)] 1729 pub struct IBinaryId(::windows::runtime::IInspectable); 1730 unsafe impl ::windows::runtime::Interface for IBinaryId { 1731 type Vtable = IBinaryId_abi; 1732 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1326294321, 21909, 17588, [145, 129, 206, 78, 250, 63, 193, 104]); 1733 } 1734 #[repr(C)] 1735 #[doc(hidden)] 1736 pub struct IBinaryId_abi( 1737 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1738 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1739 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1740 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1741 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1742 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1743 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u8) -> ::windows::runtime::HRESULT, 1744 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u32) -> ::windows::runtime::HRESULT, 1745 ); 1746 #[repr(transparent)] 1747 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1748 #[doc(hidden)] 1749 pub struct ICalendarChangedNotificationTriggerDetails(::windows::runtime::IInspectable); 1750 unsafe impl ::windows::runtime::Interface for ICalendarChangedNotificationTriggerDetails { 1751 type Vtable = ICalendarChangedNotificationTriggerDetails_abi; 1752 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1267350524, 10141, 17067, [156, 104, 62, 135, 151, 123, 242, 22]); 1753 } 1754 #[repr(C)] 1755 #[doc(hidden)] 1756 pub struct ICalendarChangedNotificationTriggerDetails_abi( 1757 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1758 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1759 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1760 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1761 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1762 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1763 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut CalendarChangedEvent) -> ::windows::runtime::HRESULT, 1764 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1765 ); 1766 #[repr(transparent)] 1767 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1768 #[doc(hidden)] 1769 pub struct ICortanaTileNotificationTriggerDetails(::windows::runtime::IInspectable); 1770 unsafe impl ::windows::runtime::Interface for ICortanaTileNotificationTriggerDetails { 1771 type Vtable = ICortanaTileNotificationTriggerDetails_abi; 1772 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3691971029, 5257, 18107, [183, 59, 127, 144, 6, 126, 207, 39]); 1773 } 1774 #[repr(C)] 1775 #[doc(hidden)] 1776 pub struct ICortanaTileNotificationTriggerDetails_abi( 1777 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1778 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1779 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1780 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1781 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1782 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1783 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1784 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1785 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1786 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1787 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1788 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1789 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1790 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1791 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1792 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1793 ); 1794 #[repr(transparent)] 1795 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1796 #[doc(hidden)] 1797 pub struct IEmailAccountInfo(::windows::runtime::IInspectable); 1798 unsafe impl ::windows::runtime::Interface for IEmailAccountInfo { 1799 type Vtable = IEmailAccountInfo_abi; 1800 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3753640619, 48544, 17768, [146, 126, 178, 237, 227, 88, 24, 161]); 1801 } 1802 #[repr(C)] 1803 #[doc(hidden)] 1804 pub struct IEmailAccountInfo_abi( 1805 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1806 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1807 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1808 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1809 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1810 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1811 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1812 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1813 ); 1814 #[repr(transparent)] 1815 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1816 #[doc(hidden)] 1817 pub struct IEmailFolderInfo(::windows::runtime::IInspectable); 1818 unsafe impl ::windows::runtime::Interface for IEmailFolderInfo { 1819 type Vtable = IEmailFolderInfo_abi; 1820 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3255244046, 57911, 18134, [144, 230, 79, 82, 158, 234, 193, 226]); 1821 } 1822 #[repr(C)] 1823 #[doc(hidden)] 1824 pub struct IEmailFolderInfo_abi( 1825 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1826 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1827 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1828 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1829 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1830 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1831 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1832 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1833 ); 1834 #[repr(transparent)] 1835 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1836 #[doc(hidden)] 1837 pub struct IEmailNotificationTriggerDetails(::windows::runtime::IInspectable); 1838 unsafe impl ::windows::runtime::Interface for IEmailNotificationTriggerDetails { 1839 type Vtable = IEmailNotificationTriggerDetails_abi; 1840 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4088931858, 18127, 20080, [142, 13, 123, 46, 4, 171, 73, 43]); 1841 } 1842 #[repr(C)] 1843 #[doc(hidden)] 1844 pub struct IEmailNotificationTriggerDetails_abi( 1845 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1846 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1847 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1848 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1849 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1850 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1851 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1852 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1853 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1854 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1855 #[cfg(feature = "ApplicationModel_Email")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1856 #[cfg(not(feature = "ApplicationModel_Email"))] usize, 1857 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 1858 #[cfg(not(feature = "Foundation"))] usize, 1859 ); 1860 #[repr(transparent)] 1861 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1862 #[doc(hidden)] 1863 pub struct IEmailNotificationTriggerDetails2(::windows::runtime::IInspectable); 1864 unsafe impl ::windows::runtime::Interface for IEmailNotificationTriggerDetails2 { 1865 type Vtable = IEmailNotificationTriggerDetails2_abi; 1866 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(377513955, 50543, 20167, [190, 209, 247, 52, 224, 141, 229, 178]); 1867 } 1868 #[repr(C)] 1869 #[doc(hidden)] 1870 pub struct IEmailNotificationTriggerDetails2_abi( 1871 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1872 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1873 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1874 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1875 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1876 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1877 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1878 ); 1879 #[repr(transparent)] 1880 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1881 #[doc(hidden)] 1882 pub struct IEmailReadNotificationTriggerDetails(::windows::runtime::IInspectable); 1883 unsafe impl ::windows::runtime::Interface for IEmailReadNotificationTriggerDetails { 1884 type Vtable = IEmailReadNotificationTriggerDetails_abi; 1885 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4122452103, 1779, 20030, [140, 66, 50, 94, 103, 1, 4, 19]); 1886 } 1887 #[repr(C)] 1888 #[doc(hidden)] 1889 pub struct IEmailReadNotificationTriggerDetails_abi( 1890 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1891 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1892 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1893 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1894 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1895 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1896 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1897 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1898 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1899 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1900 ); 1901 #[repr(transparent)] 1902 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1903 #[doc(hidden)] 1904 pub struct IMediaControlsTriggerDetails(::windows::runtime::IInspectable); 1905 unsafe impl ::windows::runtime::Interface for IMediaControlsTriggerDetails { 1906 type Vtable = IMediaControlsTriggerDetails_abi; 1907 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4206126219, 44613, 17736, [145, 202, 74, 176, 84, 142, 51, 181]); 1908 } 1909 #[repr(C)] 1910 #[doc(hidden)] 1911 pub struct IMediaControlsTriggerDetails_abi( 1912 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1913 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1914 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1915 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1916 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1917 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1918 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PlaybackStatus) -> ::windows::runtime::HRESULT, 1919 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1920 ); 1921 #[repr(transparent)] 1922 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1923 #[doc(hidden)] 1924 pub struct IMediaMetadata(::windows::runtime::IInspectable); 1925 unsafe impl ::windows::runtime::Interface for IMediaMetadata { 1926 type Vtable = IMediaMetadata_abi; 1927 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2605768183, 47980, 17200, [179, 205, 7, 4, 165, 76, 219, 128]); 1928 } 1929 #[repr(C)] 1930 #[doc(hidden)] 1931 pub struct IMediaMetadata_abi( 1932 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1933 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1934 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1935 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1936 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1937 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1938 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1939 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1940 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1941 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1942 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u32) -> ::windows::runtime::HRESULT, 1943 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::TimeSpan) -> ::windows::runtime::HRESULT, 1944 #[cfg(not(feature = "Foundation"))] usize, 1945 #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1946 #[cfg(not(feature = "Storage_Streams"))] usize, 1947 ); 1948 #[repr(transparent)] 1949 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1950 #[doc(hidden)] 1951 pub struct IPhoneCallDetails(::windows::runtime::IInspectable); 1952 unsafe impl ::windows::runtime::Interface for IPhoneCallDetails { 1953 type Vtable = IPhoneCallDetails_abi; 1954 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(203124563, 61553, 18494, [191, 51, 235, 212, 75, 114, 68, 71]); 1955 } 1956 #[repr(C)] 1957 #[doc(hidden)] 1958 pub struct IPhoneCallDetails_abi( 1959 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1960 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1961 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1962 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1963 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1964 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1965 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1966 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u32) -> ::windows::runtime::HRESULT, 1967 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PhoneCallTransport) -> ::windows::runtime::HRESULT, 1968 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PhoneMediaType) -> ::windows::runtime::HRESULT, 1969 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PhoneCallDirection) -> ::windows::runtime::HRESULT, 1970 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PhoneCallState) -> ::windows::runtime::HRESULT, 1971 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u32) -> ::windows::runtime::HRESULT, 1972 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 1973 #[cfg(not(feature = "Foundation"))] usize, 1974 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 1975 #[cfg(not(feature = "Foundation"))] usize, 1976 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1977 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1978 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1979 #[cfg(not(feature = "Foundation_Collections"))] usize, 1980 ); 1981 #[repr(transparent)] 1982 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1983 #[doc(hidden)] 1984 pub struct IPhoneLineDetails(::windows::runtime::IInspectable); 1985 unsafe impl ::windows::runtime::Interface for IPhoneLineDetails { 1986 type Vtable = IPhoneLineDetails_abi; 1987 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1206596316, 13293, 18873, [153, 92, 162, 150, 186, 200, 43, 119]); 1988 } 1989 #[repr(C)] 1990 #[doc(hidden)] 1991 pub struct IPhoneLineDetails_abi( 1992 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1993 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1994 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1995 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1996 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1997 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1998 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1999 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2000 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2001 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2002 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u32) -> ::windows::runtime::HRESULT, 2003 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PhoneLineRegistrationState) -> ::windows::runtime::HRESULT, 2004 ); 2005 #[repr(transparent)] 2006 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2007 #[doc(hidden)] 2008 pub struct IPhoneLineDetails2(::windows::runtime::IInspectable); 2009 unsafe impl ::windows::runtime::Interface for IPhoneLineDetails2 { 2010 type Vtable = IPhoneLineDetails2_abi; 2011 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3003963261, 327, 18828, [130, 65, 191, 12, 171, 198, 10, 37]); 2012 } 2013 #[repr(C)] 2014 #[doc(hidden)] 2015 pub struct IPhoneLineDetails2_abi( 2016 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2017 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2018 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2019 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2020 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2021 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2022 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u32) -> ::windows::runtime::HRESULT, 2023 ); 2024 #[repr(transparent)] 2025 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2026 #[doc(hidden)] 2027 pub struct IPhoneNotificationTriggerDetails(::windows::runtime::IInspectable); 2028 unsafe impl ::windows::runtime::Interface for IPhoneNotificationTriggerDetails { 2029 type Vtable = IPhoneNotificationTriggerDetails_abi; 2030 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3435331063, 2499, 16664, [145, 188, 202, 99, 35, 168, 211, 131]); 2031 } 2032 #[repr(C)] 2033 #[doc(hidden)] 2034 pub struct IPhoneNotificationTriggerDetails_abi( 2035 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2036 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2037 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2038 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2039 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2040 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2041 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PhoneNotificationType) -> ::windows::runtime::HRESULT, 2042 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2043 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2044 ); 2045 #[repr(transparent)] 2046 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2047 #[doc(hidden)] 2048 pub struct IReminderNotificationTriggerDetails(::windows::runtime::IInspectable); 2049 unsafe impl ::windows::runtime::Interface for IReminderNotificationTriggerDetails { 2050 type Vtable = IReminderNotificationTriggerDetails_abi; 2051 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1541253725, 40801, 19440, [159, 235, 16, 80, 43, 192, 176, 194]); 2052 } 2053 #[repr(C)] 2054 #[doc(hidden)] 2055 pub struct IReminderNotificationTriggerDetails_abi( 2056 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2057 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2058 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2059 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2060 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2061 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2062 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2063 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2064 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2065 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2066 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 2067 #[cfg(not(feature = "Foundation"))] usize, 2068 #[cfg(feature = "ApplicationModel_Appointments")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2069 #[cfg(not(feature = "ApplicationModel_Appointments"))] usize, 2070 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ReminderState) -> ::windows::runtime::HRESULT, 2071 ); 2072 #[repr(transparent)] 2073 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2074 #[doc(hidden)] 2075 pub struct IReminderNotificationTriggerDetails2(::windows::runtime::IInspectable); 2076 unsafe impl ::windows::runtime::Interface for IReminderNotificationTriggerDetails2 { 2077 type Vtable = IReminderNotificationTriggerDetails2_abi; 2078 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3876977088, 20557, 19471, [166, 179, 188, 185, 114, 44, 108, 221]); 2079 } 2080 #[repr(C)] 2081 #[doc(hidden)] 2082 pub struct IReminderNotificationTriggerDetails2_abi( 2083 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2084 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2085 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2086 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2087 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2088 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2089 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2090 ); 2091 #[repr(transparent)] 2092 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2093 #[doc(hidden)] 2094 pub struct ISpeedDialEntry(::windows::runtime::IInspectable); 2095 unsafe impl ::windows::runtime::Interface for ISpeedDialEntry { 2096 type Vtable = ISpeedDialEntry_abi; 2097 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2453714651, 34604, 18140, [182, 42, 190, 69, 65, 177, 102, 248]); 2098 } 2099 #[repr(C)] 2100 #[doc(hidden)] 2101 pub struct ISpeedDialEntry_abi( 2102 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2103 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2104 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2105 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2106 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2107 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2108 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2109 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2110 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2111 ); 2112 #[repr(transparent)] 2113 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2114 #[doc(hidden)] 2115 pub struct ITextResponse(::windows::runtime::IInspectable); 2116 unsafe impl ::windows::runtime::Interface for ITextResponse { 2117 type Vtable = ITextResponse_abi; 2118 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3922425027, 9303, 19675, [129, 16, 114, 245, 232, 232, 131, 232]); 2119 } 2120 #[repr(C)] 2121 #[doc(hidden)] 2122 pub struct ITextResponse_abi( 2123 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2124 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2125 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2126 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2127 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2128 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2129 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u32) -> ::windows::runtime::HRESULT, 2130 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2131 ); 2132 #[repr(transparent)] 2133 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2134 #[doc(hidden)] 2135 pub struct IToastNotificationTriggerDetails(::windows::runtime::IInspectable); 2136 unsafe impl ::windows::runtime::Interface for IToastNotificationTriggerDetails { 2137 type Vtable = IToastNotificationTriggerDetails_abi; 2138 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3375450261, 20077, 20125, [175, 236, 158, 146, 27, 135, 90, 232]); 2139 } 2140 #[repr(C)] 2141 #[doc(hidden)] 2142 pub struct IToastNotificationTriggerDetails_abi( 2143 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2144 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2145 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2146 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2147 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2148 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2149 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2150 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2151 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2152 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2153 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2154 ); 2155 #[repr(transparent)] 2156 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2157 #[doc(hidden)] 2158 pub struct IToastNotificationTriggerDetails2(::windows::runtime::IInspectable); 2159 unsafe impl ::windows::runtime::Interface for IToastNotificationTriggerDetails2 { 2160 type Vtable = IToastNotificationTriggerDetails2_abi; 2161 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1040480733, 51908, 20320, [175, 163, 185, 37, 217, 216, 60, 147]); 2162 } 2163 #[repr(C)] 2164 #[doc(hidden)] 2165 pub struct IToastNotificationTriggerDetails2_abi( 2166 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2167 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2168 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2169 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2170 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2171 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2172 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2173 ); 2174 #[repr(transparent)] 2175 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2176 #[doc(hidden)] 2177 pub struct IVolumeInfo(::windows::runtime::IInspectable); 2178 unsafe impl ::windows::runtime::Interface for IVolumeInfo { 2179 type Vtable = IVolumeInfo_abi; 2180 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2488127768, 30468, 17537, [185, 46, 211, 237, 62, 206, 99, 34]); 2181 } 2182 #[repr(C)] 2183 #[doc(hidden)] 2184 pub struct IVolumeInfo_abi( 2185 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2186 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2187 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2188 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2189 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2190 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2191 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u32) -> ::windows::runtime::HRESULT, 2192 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u32) -> ::windows::runtime::HRESULT, 2193 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u32) -> ::windows::runtime::HRESULT, 2194 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2195 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut VibrateState) -> ::windows::runtime::HRESULT, 2196 ); 2197 #[repr(transparent)] 2198 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2199 pub struct MediaControlsTriggerDetails(::windows::runtime::IInspectable); 2200 impl MediaControlsTriggerDetails { PlaybackStatus(&self) -> ::windows::runtime::Result<PlaybackStatus>2201 pub fn PlaybackStatus(&self) -> ::windows::runtime::Result<PlaybackStatus> { 2202 let this = self; 2203 unsafe { 2204 let mut result__: PlaybackStatus = ::std::mem::zeroed(); 2205 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PlaybackStatus>(result__) 2206 } 2207 } MediaMetadata(&self) -> ::windows::runtime::Result<MediaMetadata>2208 pub fn MediaMetadata(&self) -> ::windows::runtime::Result<MediaMetadata> { 2209 let this = self; 2210 unsafe { 2211 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2212 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<MediaMetadata>(result__) 2213 } 2214 } 2215 #[cfg(feature = "Foundation")] TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>2216 pub fn TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 2217 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2218 unsafe { 2219 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 2220 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 2221 } 2222 } AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2223 pub fn AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2224 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2225 unsafe { 2226 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2227 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2228 } 2229 } AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2230 pub fn AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2231 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2232 unsafe { 2233 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2234 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2235 } 2236 } AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType>2237 pub fn AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType> { 2238 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2239 unsafe { 2240 let mut result__: AccessoryNotificationType = ::std::mem::zeroed(); 2241 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AccessoryNotificationType>(result__) 2242 } 2243 } StartedProcessing(&self) -> ::windows::runtime::Result<bool>2244 pub fn StartedProcessing(&self) -> ::windows::runtime::Result<bool> { 2245 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2246 unsafe { 2247 let mut result__: bool = ::std::mem::zeroed(); 2248 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2249 } 2250 } SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()>2251 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()> { 2252 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2253 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 2254 } 2255 } 2256 unsafe impl ::windows::runtime::RuntimeType for MediaControlsTriggerDetails { 2257 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.MediaControlsTriggerDetails;{fab4648b-ae45-4548-91ca-4ab0548e33b5})"); 2258 } 2259 unsafe impl ::windows::runtime::Interface for MediaControlsTriggerDetails { 2260 type Vtable = IMediaControlsTriggerDetails_abi; 2261 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4206126219, 44613, 17736, [145, 202, 74, 176, 84, 142, 51, 181]); 2262 } 2263 impl ::windows::runtime::RuntimeName for MediaControlsTriggerDetails { 2264 const NAME: &'static str = "Windows.Phone.Notification.Management.MediaControlsTriggerDetails"; 2265 } 2266 impl ::std::convert::From<MediaControlsTriggerDetails> for ::windows::runtime::IUnknown { from(value: MediaControlsTriggerDetails) -> Self2267 fn from(value: MediaControlsTriggerDetails) -> Self { 2268 unsafe { ::std::mem::transmute(value) } 2269 } 2270 } 2271 impl ::std::convert::From<&MediaControlsTriggerDetails> for ::windows::runtime::IUnknown { from(value: &MediaControlsTriggerDetails) -> Self2272 fn from(value: &MediaControlsTriggerDetails) -> Self { 2273 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2274 } 2275 } 2276 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for MediaControlsTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2277 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2278 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2279 } 2280 } 2281 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &MediaControlsTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2282 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2283 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2284 } 2285 } 2286 impl ::std::convert::From<MediaControlsTriggerDetails> for ::windows::runtime::IInspectable { from(value: MediaControlsTriggerDetails) -> Self2287 fn from(value: MediaControlsTriggerDetails) -> Self { 2288 value.0 2289 } 2290 } 2291 impl ::std::convert::From<&MediaControlsTriggerDetails> for ::windows::runtime::IInspectable { from(value: &MediaControlsTriggerDetails) -> Self2292 fn from(value: &MediaControlsTriggerDetails) -> Self { 2293 value.0.clone() 2294 } 2295 } 2296 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for MediaControlsTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2297 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2298 ::windows::runtime::Param::Owned(self.0) 2299 } 2300 } 2301 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a MediaControlsTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2302 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2303 ::windows::runtime::Param::Borrowed(&self.0) 2304 } 2305 } 2306 impl ::std::convert::TryFrom<MediaControlsTriggerDetails> for IAccessoryNotificationTriggerDetails { 2307 type Error = ::windows::runtime::Error; try_from(value: MediaControlsTriggerDetails) -> ::windows::runtime::Result<Self>2308 fn try_from(value: MediaControlsTriggerDetails) -> ::windows::runtime::Result<Self> { 2309 ::std::convert::TryFrom::try_from(&value) 2310 } 2311 } 2312 impl ::std::convert::TryFrom<&MediaControlsTriggerDetails> for IAccessoryNotificationTriggerDetails { 2313 type Error = ::windows::runtime::Error; try_from(value: &MediaControlsTriggerDetails) -> ::windows::runtime::Result<Self>2314 fn try_from(value: &MediaControlsTriggerDetails) -> ::windows::runtime::Result<Self> { 2315 ::windows::runtime::Interface::cast(value) 2316 } 2317 } 2318 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for MediaControlsTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>2319 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 2320 ::windows::runtime::IntoParam::into_param(&self) 2321 } 2322 } 2323 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for &MediaControlsTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>2324 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 2325 ::std::convert::TryInto::<IAccessoryNotificationTriggerDetails>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2326 } 2327 } 2328 #[repr(transparent)] 2329 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2330 pub struct MediaMetadata(::windows::runtime::IInspectable); 2331 impl MediaMetadata { Title(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2332 pub fn Title(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2333 let this = self; 2334 unsafe { 2335 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2336 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2337 } 2338 } Subtitle(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2339 pub fn Subtitle(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2340 let this = self; 2341 unsafe { 2342 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2343 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2344 } 2345 } Artist(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2346 pub fn Artist(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2347 let this = self; 2348 unsafe { 2349 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2350 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2351 } 2352 } Album(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2353 pub fn Album(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2354 let this = self; 2355 unsafe { 2356 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2357 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2358 } 2359 } Track(&self) -> ::windows::runtime::Result<u32>2360 pub fn Track(&self) -> ::windows::runtime::Result<u32> { 2361 let this = self; 2362 unsafe { 2363 let mut result__: u32 = ::std::mem::zeroed(); 2364 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 2365 } 2366 } 2367 #[cfg(feature = "Foundation")] Duration(&self) -> ::windows::runtime::Result<super::super::super::Foundation::TimeSpan>2368 pub fn Duration(&self) -> ::windows::runtime::Result<super::super::super::Foundation::TimeSpan> { 2369 let this = self; 2370 unsafe { 2371 let mut result__: super::super::super::Foundation::TimeSpan = ::std::mem::zeroed(); 2372 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::TimeSpan>(result__) 2373 } 2374 } 2375 #[cfg(feature = "Storage_Streams")] Thumbnail(&self) -> ::windows::runtime::Result<super::super::super::Storage::Streams::IRandomAccessStreamReference>2376 pub fn Thumbnail(&self) -> ::windows::runtime::Result<super::super::super::Storage::Streams::IRandomAccessStreamReference> { 2377 let this = self; 2378 unsafe { 2379 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2380 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Storage::Streams::IRandomAccessStreamReference>(result__) 2381 } 2382 } 2383 } 2384 unsafe impl ::windows::runtime::RuntimeType for MediaMetadata { 2385 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.MediaMetadata;{9b50ddf7-bb6c-4330-b3cd-0704a54cdb80})"); 2386 } 2387 unsafe impl ::windows::runtime::Interface for MediaMetadata { 2388 type Vtable = IMediaMetadata_abi; 2389 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2605768183, 47980, 17200, [179, 205, 7, 4, 165, 76, 219, 128]); 2390 } 2391 impl ::windows::runtime::RuntimeName for MediaMetadata { 2392 const NAME: &'static str = "Windows.Phone.Notification.Management.MediaMetadata"; 2393 } 2394 impl ::std::convert::From<MediaMetadata> for ::windows::runtime::IUnknown { from(value: MediaMetadata) -> Self2395 fn from(value: MediaMetadata) -> Self { 2396 unsafe { ::std::mem::transmute(value) } 2397 } 2398 } 2399 impl ::std::convert::From<&MediaMetadata> for ::windows::runtime::IUnknown { from(value: &MediaMetadata) -> Self2400 fn from(value: &MediaMetadata) -> Self { 2401 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2402 } 2403 } 2404 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for MediaMetadata { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2405 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2406 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2407 } 2408 } 2409 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &MediaMetadata { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2410 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2411 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2412 } 2413 } 2414 impl ::std::convert::From<MediaMetadata> for ::windows::runtime::IInspectable { from(value: MediaMetadata) -> Self2415 fn from(value: MediaMetadata) -> Self { 2416 value.0 2417 } 2418 } 2419 impl ::std::convert::From<&MediaMetadata> for ::windows::runtime::IInspectable { from(value: &MediaMetadata) -> Self2420 fn from(value: &MediaMetadata) -> Self { 2421 value.0.clone() 2422 } 2423 } 2424 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for MediaMetadata { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2425 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2426 ::windows::runtime::Param::Owned(self.0) 2427 } 2428 } 2429 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a MediaMetadata { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2430 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2431 ::windows::runtime::Param::Borrowed(&self.0) 2432 } 2433 } 2434 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 2435 #[repr(transparent)] 2436 pub struct PhoneCallAudioEndpoint(pub i32); 2437 impl PhoneCallAudioEndpoint { 2438 pub const Default: PhoneCallAudioEndpoint = PhoneCallAudioEndpoint(0i32); 2439 pub const Speaker: PhoneCallAudioEndpoint = PhoneCallAudioEndpoint(1i32); 2440 pub const Handsfree: PhoneCallAudioEndpoint = PhoneCallAudioEndpoint(2i32); 2441 } 2442 impl ::std::convert::From<i32> for PhoneCallAudioEndpoint { from(value: i32) -> Self2443 fn from(value: i32) -> Self { 2444 Self(value) 2445 } 2446 } 2447 unsafe impl ::windows::runtime::Abi for PhoneCallAudioEndpoint { 2448 type Abi = Self; 2449 type DefaultType = Self; 2450 } 2451 unsafe impl ::windows::runtime::RuntimeType for PhoneCallAudioEndpoint { 2452 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneCallAudioEndpoint;i4)"); 2453 } 2454 #[repr(transparent)] 2455 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2456 pub struct PhoneCallDetails(::windows::runtime::IInspectable); 2457 impl PhoneCallDetails { PhoneLine(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>2458 pub fn PhoneLine(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 2459 let this = self; 2460 unsafe { 2461 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 2462 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 2463 } 2464 } CallId(&self) -> ::windows::runtime::Result<u32>2465 pub fn CallId(&self) -> ::windows::runtime::Result<u32> { 2466 let this = self; 2467 unsafe { 2468 let mut result__: u32 = ::std::mem::zeroed(); 2469 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 2470 } 2471 } CallTransport(&self) -> ::windows::runtime::Result<PhoneCallTransport>2472 pub fn CallTransport(&self) -> ::windows::runtime::Result<PhoneCallTransport> { 2473 let this = self; 2474 unsafe { 2475 let mut result__: PhoneCallTransport = ::std::mem::zeroed(); 2476 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PhoneCallTransport>(result__) 2477 } 2478 } CallMediaType(&self) -> ::windows::runtime::Result<PhoneMediaType>2479 pub fn CallMediaType(&self) -> ::windows::runtime::Result<PhoneMediaType> { 2480 let this = self; 2481 unsafe { 2482 let mut result__: PhoneMediaType = ::std::mem::zeroed(); 2483 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PhoneMediaType>(result__) 2484 } 2485 } CallDirection(&self) -> ::windows::runtime::Result<PhoneCallDirection>2486 pub fn CallDirection(&self) -> ::windows::runtime::Result<PhoneCallDirection> { 2487 let this = self; 2488 unsafe { 2489 let mut result__: PhoneCallDirection = ::std::mem::zeroed(); 2490 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PhoneCallDirection>(result__) 2491 } 2492 } State(&self) -> ::windows::runtime::Result<PhoneCallState>2493 pub fn State(&self) -> ::windows::runtime::Result<PhoneCallState> { 2494 let this = self; 2495 unsafe { 2496 let mut result__: PhoneCallState = ::std::mem::zeroed(); 2497 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PhoneCallState>(result__) 2498 } 2499 } ConferenceCallId(&self) -> ::windows::runtime::Result<u32>2500 pub fn ConferenceCallId(&self) -> ::windows::runtime::Result<u32> { 2501 let this = self; 2502 unsafe { 2503 let mut result__: u32 = ::std::mem::zeroed(); 2504 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 2505 } 2506 } 2507 #[cfg(feature = "Foundation")] StartTime(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>2508 pub fn StartTime(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 2509 let this = self; 2510 unsafe { 2511 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 2512 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 2513 } 2514 } 2515 #[cfg(feature = "Foundation")] EndTime(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>2516 pub fn EndTime(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 2517 let this = self; 2518 unsafe { 2519 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 2520 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 2521 } 2522 } PhoneNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2523 pub fn PhoneNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2524 let this = self; 2525 unsafe { 2526 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2527 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2528 } 2529 } ContactName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2530 pub fn ContactName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2531 let this = self; 2532 unsafe { 2533 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2534 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2535 } 2536 } 2537 #[cfg(feature = "Foundation_Collections")] PresetTextResponses(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<TextResponse>>2538 pub fn PresetTextResponses(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<TextResponse>> { 2539 let this = self; 2540 unsafe { 2541 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2542 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Collections::IVectorView<TextResponse>>(result__) 2543 } 2544 } 2545 } 2546 unsafe impl ::windows::runtime::RuntimeType for PhoneCallDetails { 2547 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.PhoneCallDetails;{0c1b6f53-f071-483e-bf33-ebd44b724447})"); 2548 } 2549 unsafe impl ::windows::runtime::Interface for PhoneCallDetails { 2550 type Vtable = IPhoneCallDetails_abi; 2551 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(203124563, 61553, 18494, [191, 51, 235, 212, 75, 114, 68, 71]); 2552 } 2553 impl ::windows::runtime::RuntimeName for PhoneCallDetails { 2554 const NAME: &'static str = "Windows.Phone.Notification.Management.PhoneCallDetails"; 2555 } 2556 impl ::std::convert::From<PhoneCallDetails> for ::windows::runtime::IUnknown { from(value: PhoneCallDetails) -> Self2557 fn from(value: PhoneCallDetails) -> Self { 2558 unsafe { ::std::mem::transmute(value) } 2559 } 2560 } 2561 impl ::std::convert::From<&PhoneCallDetails> for ::windows::runtime::IUnknown { from(value: &PhoneCallDetails) -> Self2562 fn from(value: &PhoneCallDetails) -> Self { 2563 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2564 } 2565 } 2566 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PhoneCallDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2567 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2568 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2569 } 2570 } 2571 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PhoneCallDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2572 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2573 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2574 } 2575 } 2576 impl ::std::convert::From<PhoneCallDetails> for ::windows::runtime::IInspectable { from(value: PhoneCallDetails) -> Self2577 fn from(value: PhoneCallDetails) -> Self { 2578 value.0 2579 } 2580 } 2581 impl ::std::convert::From<&PhoneCallDetails> for ::windows::runtime::IInspectable { from(value: &PhoneCallDetails) -> Self2582 fn from(value: &PhoneCallDetails) -> Self { 2583 value.0.clone() 2584 } 2585 } 2586 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PhoneCallDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2587 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2588 ::windows::runtime::Param::Owned(self.0) 2589 } 2590 } 2591 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PhoneCallDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2592 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2593 ::windows::runtime::Param::Borrowed(&self.0) 2594 } 2595 } 2596 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 2597 #[repr(transparent)] 2598 pub struct PhoneCallDirection(pub i32); 2599 impl PhoneCallDirection { 2600 pub const Incoming: PhoneCallDirection = PhoneCallDirection(0i32); 2601 pub const Outgoing: PhoneCallDirection = PhoneCallDirection(1i32); 2602 } 2603 impl ::std::convert::From<i32> for PhoneCallDirection { from(value: i32) -> Self2604 fn from(value: i32) -> Self { 2605 Self(value) 2606 } 2607 } 2608 unsafe impl ::windows::runtime::Abi for PhoneCallDirection { 2609 type Abi = Self; 2610 type DefaultType = Self; 2611 } 2612 unsafe impl ::windows::runtime::RuntimeType for PhoneCallDirection { 2613 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneCallDirection;i4)"); 2614 } 2615 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 2616 #[repr(transparent)] 2617 pub struct PhoneCallState(pub i32); 2618 impl PhoneCallState { 2619 pub const Unknown: PhoneCallState = PhoneCallState(0i32); 2620 pub const Ringing: PhoneCallState = PhoneCallState(1i32); 2621 pub const Talking: PhoneCallState = PhoneCallState(2i32); 2622 pub const Held: PhoneCallState = PhoneCallState(3i32); 2623 pub const Ended: PhoneCallState = PhoneCallState(4i32); 2624 } 2625 impl ::std::convert::From<i32> for PhoneCallState { from(value: i32) -> Self2626 fn from(value: i32) -> Self { 2627 Self(value) 2628 } 2629 } 2630 unsafe impl ::windows::runtime::Abi for PhoneCallState { 2631 type Abi = Self; 2632 type DefaultType = Self; 2633 } 2634 unsafe impl ::windows::runtime::RuntimeType for PhoneCallState { 2635 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneCallState;i4)"); 2636 } 2637 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 2638 #[repr(transparent)] 2639 pub struct PhoneCallTransport(pub i32); 2640 impl PhoneCallTransport { 2641 pub const Cellular: PhoneCallTransport = PhoneCallTransport(0i32); 2642 pub const Voip: PhoneCallTransport = PhoneCallTransport(1i32); 2643 } 2644 impl ::std::convert::From<i32> for PhoneCallTransport { from(value: i32) -> Self2645 fn from(value: i32) -> Self { 2646 Self(value) 2647 } 2648 } 2649 unsafe impl ::windows::runtime::Abi for PhoneCallTransport { 2650 type Abi = Self; 2651 type DefaultType = Self; 2652 } 2653 unsafe impl ::windows::runtime::RuntimeType for PhoneCallTransport { 2654 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneCallTransport;i4)"); 2655 } 2656 #[repr(transparent)] 2657 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2658 pub struct PhoneLineDetails(::windows::runtime::IInspectable); 2659 impl PhoneLineDetails { LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>2660 pub fn LineId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 2661 let this = self; 2662 unsafe { 2663 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 2664 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 2665 } 2666 } DisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2667 pub fn DisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2668 let this = self; 2669 unsafe { 2670 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2671 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2672 } 2673 } LineNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2674 pub fn LineNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2675 let this = self; 2676 unsafe { 2677 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2678 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2679 } 2680 } DefaultOutgoingLine(&self) -> ::windows::runtime::Result<bool>2681 pub fn DefaultOutgoingLine(&self) -> ::windows::runtime::Result<bool> { 2682 let this = self; 2683 unsafe { 2684 let mut result__: bool = ::std::mem::zeroed(); 2685 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2686 } 2687 } VoicemailCount(&self) -> ::windows::runtime::Result<u32>2688 pub fn VoicemailCount(&self) -> ::windows::runtime::Result<u32> { 2689 let this = self; 2690 unsafe { 2691 let mut result__: u32 = ::std::mem::zeroed(); 2692 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 2693 } 2694 } RegistrationState(&self) -> ::windows::runtime::Result<PhoneLineRegistrationState>2695 pub fn RegistrationState(&self) -> ::windows::runtime::Result<PhoneLineRegistrationState> { 2696 let this = self; 2697 unsafe { 2698 let mut result__: PhoneLineRegistrationState = ::std::mem::zeroed(); 2699 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PhoneLineRegistrationState>(result__) 2700 } 2701 } MissedCallCount(&self) -> ::windows::runtime::Result<u32>2702 pub fn MissedCallCount(&self) -> ::windows::runtime::Result<u32> { 2703 let this = &::windows::runtime::Interface::cast::<IPhoneLineDetails2>(self)?; 2704 unsafe { 2705 let mut result__: u32 = ::std::mem::zeroed(); 2706 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 2707 } 2708 } 2709 } 2710 unsafe impl ::windows::runtime::RuntimeType for PhoneLineDetails { 2711 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.PhoneLineDetails;{47eb32dc-33ed-49b9-995c-a296bac82b77})"); 2712 } 2713 unsafe impl ::windows::runtime::Interface for PhoneLineDetails { 2714 type Vtable = IPhoneLineDetails_abi; 2715 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1206596316, 13293, 18873, [153, 92, 162, 150, 186, 200, 43, 119]); 2716 } 2717 impl ::windows::runtime::RuntimeName for PhoneLineDetails { 2718 const NAME: &'static str = "Windows.Phone.Notification.Management.PhoneLineDetails"; 2719 } 2720 impl ::std::convert::From<PhoneLineDetails> for ::windows::runtime::IUnknown { from(value: PhoneLineDetails) -> Self2721 fn from(value: PhoneLineDetails) -> Self { 2722 unsafe { ::std::mem::transmute(value) } 2723 } 2724 } 2725 impl ::std::convert::From<&PhoneLineDetails> for ::windows::runtime::IUnknown { from(value: &PhoneLineDetails) -> Self2726 fn from(value: &PhoneLineDetails) -> Self { 2727 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2728 } 2729 } 2730 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PhoneLineDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2731 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2732 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2733 } 2734 } 2735 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PhoneLineDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2736 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2737 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2738 } 2739 } 2740 impl ::std::convert::From<PhoneLineDetails> for ::windows::runtime::IInspectable { from(value: PhoneLineDetails) -> Self2741 fn from(value: PhoneLineDetails) -> Self { 2742 value.0 2743 } 2744 } 2745 impl ::std::convert::From<&PhoneLineDetails> for ::windows::runtime::IInspectable { from(value: &PhoneLineDetails) -> Self2746 fn from(value: &PhoneLineDetails) -> Self { 2747 value.0.clone() 2748 } 2749 } 2750 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PhoneLineDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2751 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2752 ::windows::runtime::Param::Owned(self.0) 2753 } 2754 } 2755 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PhoneLineDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2756 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2757 ::windows::runtime::Param::Borrowed(&self.0) 2758 } 2759 } 2760 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 2761 #[repr(transparent)] 2762 pub struct PhoneLineRegistrationState(pub i32); 2763 impl PhoneLineRegistrationState { 2764 pub const Disconnected: PhoneLineRegistrationState = PhoneLineRegistrationState(0i32); 2765 pub const Home: PhoneLineRegistrationState = PhoneLineRegistrationState(1i32); 2766 pub const Roaming: PhoneLineRegistrationState = PhoneLineRegistrationState(2i32); 2767 } 2768 impl ::std::convert::From<i32> for PhoneLineRegistrationState { from(value: i32) -> Self2769 fn from(value: i32) -> Self { 2770 Self(value) 2771 } 2772 } 2773 unsafe impl ::windows::runtime::Abi for PhoneLineRegistrationState { 2774 type Abi = Self; 2775 type DefaultType = Self; 2776 } 2777 unsafe impl ::windows::runtime::RuntimeType for PhoneLineRegistrationState { 2778 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneLineRegistrationState;i4)"); 2779 } 2780 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 2781 #[repr(transparent)] 2782 pub struct PhoneMediaType(pub i32); 2783 impl PhoneMediaType { 2784 pub const AudioOnly: PhoneMediaType = PhoneMediaType(0i32); 2785 pub const AudioVideo: PhoneMediaType = PhoneMediaType(1i32); 2786 } 2787 impl ::std::convert::From<i32> for PhoneMediaType { from(value: i32) -> Self2788 fn from(value: i32) -> Self { 2789 Self(value) 2790 } 2791 } 2792 unsafe impl ::windows::runtime::Abi for PhoneMediaType { 2793 type Abi = Self; 2794 type DefaultType = Self; 2795 } 2796 unsafe impl ::windows::runtime::RuntimeType for PhoneMediaType { 2797 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneMediaType;i4)"); 2798 } 2799 #[repr(transparent)] 2800 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2801 pub struct PhoneNotificationTriggerDetails(::windows::runtime::IInspectable); 2802 impl PhoneNotificationTriggerDetails { PhoneNotificationType(&self) -> ::windows::runtime::Result<PhoneNotificationType>2803 pub fn PhoneNotificationType(&self) -> ::windows::runtime::Result<PhoneNotificationType> { 2804 let this = self; 2805 unsafe { 2806 let mut result__: PhoneNotificationType = ::std::mem::zeroed(); 2807 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PhoneNotificationType>(result__) 2808 } 2809 } CallDetails(&self) -> ::windows::runtime::Result<PhoneCallDetails>2810 pub fn CallDetails(&self) -> ::windows::runtime::Result<PhoneCallDetails> { 2811 let this = self; 2812 unsafe { 2813 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2814 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PhoneCallDetails>(result__) 2815 } 2816 } PhoneLineChangedId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>2817 pub fn PhoneLineChangedId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 2818 let this = self; 2819 unsafe { 2820 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 2821 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 2822 } 2823 } 2824 #[cfg(feature = "Foundation")] TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>2825 pub fn TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 2826 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2827 unsafe { 2828 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 2829 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 2830 } 2831 } AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2832 pub fn AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2833 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2834 unsafe { 2835 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2836 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2837 } 2838 } AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2839 pub fn AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2840 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2841 unsafe { 2842 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2843 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2844 } 2845 } AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType>2846 pub fn AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType> { 2847 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2848 unsafe { 2849 let mut result__: AccessoryNotificationType = ::std::mem::zeroed(); 2850 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AccessoryNotificationType>(result__) 2851 } 2852 } StartedProcessing(&self) -> ::windows::runtime::Result<bool>2853 pub fn StartedProcessing(&self) -> ::windows::runtime::Result<bool> { 2854 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2855 unsafe { 2856 let mut result__: bool = ::std::mem::zeroed(); 2857 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2858 } 2859 } SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()>2860 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()> { 2861 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 2862 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 2863 } 2864 } 2865 unsafe impl ::windows::runtime::RuntimeType for PhoneNotificationTriggerDetails { 2866 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.PhoneNotificationTriggerDetails;{ccc2fdf7-09c3-4118-91bc-ca6323a8d383})"); 2867 } 2868 unsafe impl ::windows::runtime::Interface for PhoneNotificationTriggerDetails { 2869 type Vtable = IPhoneNotificationTriggerDetails_abi; 2870 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3435331063, 2499, 16664, [145, 188, 202, 99, 35, 168, 211, 131]); 2871 } 2872 impl ::windows::runtime::RuntimeName for PhoneNotificationTriggerDetails { 2873 const NAME: &'static str = "Windows.Phone.Notification.Management.PhoneNotificationTriggerDetails"; 2874 } 2875 impl ::std::convert::From<PhoneNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: PhoneNotificationTriggerDetails) -> Self2876 fn from(value: PhoneNotificationTriggerDetails) -> Self { 2877 unsafe { ::std::mem::transmute(value) } 2878 } 2879 } 2880 impl ::std::convert::From<&PhoneNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: &PhoneNotificationTriggerDetails) -> Self2881 fn from(value: &PhoneNotificationTriggerDetails) -> Self { 2882 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2883 } 2884 } 2885 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PhoneNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2886 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2887 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2888 } 2889 } 2890 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PhoneNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2891 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2892 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2893 } 2894 } 2895 impl ::std::convert::From<PhoneNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: PhoneNotificationTriggerDetails) -> Self2896 fn from(value: PhoneNotificationTriggerDetails) -> Self { 2897 value.0 2898 } 2899 } 2900 impl ::std::convert::From<&PhoneNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: &PhoneNotificationTriggerDetails) -> Self2901 fn from(value: &PhoneNotificationTriggerDetails) -> Self { 2902 value.0.clone() 2903 } 2904 } 2905 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PhoneNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2906 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2907 ::windows::runtime::Param::Owned(self.0) 2908 } 2909 } 2910 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PhoneNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2911 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2912 ::windows::runtime::Param::Borrowed(&self.0) 2913 } 2914 } 2915 impl ::std::convert::TryFrom<PhoneNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 2916 type Error = ::windows::runtime::Error; try_from(value: PhoneNotificationTriggerDetails) -> ::windows::runtime::Result<Self>2917 fn try_from(value: PhoneNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 2918 ::std::convert::TryFrom::try_from(&value) 2919 } 2920 } 2921 impl ::std::convert::TryFrom<&PhoneNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 2922 type Error = ::windows::runtime::Error; try_from(value: &PhoneNotificationTriggerDetails) -> ::windows::runtime::Result<Self>2923 fn try_from(value: &PhoneNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 2924 ::windows::runtime::Interface::cast(value) 2925 } 2926 } 2927 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for PhoneNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>2928 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 2929 ::windows::runtime::IntoParam::into_param(&self) 2930 } 2931 } 2932 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for &PhoneNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>2933 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 2934 ::std::convert::TryInto::<IAccessoryNotificationTriggerDetails>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2935 } 2936 } 2937 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 2938 #[repr(transparent)] 2939 pub struct PhoneNotificationType(pub i32); 2940 impl PhoneNotificationType { 2941 pub const NewCall: PhoneNotificationType = PhoneNotificationType(0i32); 2942 pub const CallChanged: PhoneNotificationType = PhoneNotificationType(1i32); 2943 pub const LineChanged: PhoneNotificationType = PhoneNotificationType(2i32); 2944 pub const PhoneCallAudioEndpointChanged: PhoneNotificationType = PhoneNotificationType(3i32); 2945 pub const PhoneMuteChanged: PhoneNotificationType = PhoneNotificationType(4i32); 2946 } 2947 impl ::std::convert::From<i32> for PhoneNotificationType { from(value: i32) -> Self2948 fn from(value: i32) -> Self { 2949 Self(value) 2950 } 2951 } 2952 unsafe impl ::windows::runtime::Abi for PhoneNotificationType { 2953 type Abi = Self; 2954 type DefaultType = Self; 2955 } 2956 unsafe impl ::windows::runtime::RuntimeType for PhoneNotificationType { 2957 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneNotificationType;i4)"); 2958 } 2959 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 2960 #[repr(transparent)] 2961 pub struct PlaybackCapability(pub u32); 2962 impl PlaybackCapability { 2963 pub const None: PlaybackCapability = PlaybackCapability(0u32); 2964 pub const Play: PlaybackCapability = PlaybackCapability(1u32); 2965 pub const Pause: PlaybackCapability = PlaybackCapability(2u32); 2966 pub const Stop: PlaybackCapability = PlaybackCapability(4u32); 2967 pub const Record: PlaybackCapability = PlaybackCapability(8u32); 2968 pub const FastForward: PlaybackCapability = PlaybackCapability(16u32); 2969 pub const Rewind: PlaybackCapability = PlaybackCapability(32u32); 2970 pub const Next: PlaybackCapability = PlaybackCapability(64u32); 2971 pub const Previous: PlaybackCapability = PlaybackCapability(128u32); 2972 pub const ChannelUp: PlaybackCapability = PlaybackCapability(256u32); 2973 pub const ChannelDown: PlaybackCapability = PlaybackCapability(512u32); 2974 } 2975 impl ::std::convert::From<u32> for PlaybackCapability { from(value: u32) -> Self2976 fn from(value: u32) -> Self { 2977 Self(value) 2978 } 2979 } 2980 unsafe impl ::windows::runtime::Abi for PlaybackCapability { 2981 type Abi = Self; 2982 type DefaultType = Self; 2983 } 2984 unsafe impl ::windows::runtime::RuntimeType for PlaybackCapability { 2985 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PlaybackCapability;u4)"); 2986 } 2987 impl ::std::ops::BitOr for PlaybackCapability { 2988 type Output = Self; bitor(self, rhs: Self) -> Self2989 fn bitor(self, rhs: Self) -> Self { 2990 Self(self.0 | rhs.0) 2991 } 2992 } 2993 impl ::std::ops::BitAnd for PlaybackCapability { 2994 type Output = Self; bitand(self, rhs: Self) -> Self2995 fn bitand(self, rhs: Self) -> Self { 2996 Self(self.0 & rhs.0) 2997 } 2998 } 2999 impl ::std::ops::BitOrAssign for PlaybackCapability { bitor_assign(&mut self, rhs: Self)3000 fn bitor_assign(&mut self, rhs: Self) { 3001 self.0.bitor_assign(rhs.0) 3002 } 3003 } 3004 impl ::std::ops::BitAndAssign for PlaybackCapability { bitand_assign(&mut self, rhs: Self)3005 fn bitand_assign(&mut self, rhs: Self) { 3006 self.0.bitand_assign(rhs.0) 3007 } 3008 } 3009 impl ::std::ops::Not for PlaybackCapability { 3010 type Output = Self; not(self) -> Self3011 fn not(self) -> Self { 3012 Self(self.0.not()) 3013 } 3014 } 3015 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 3016 #[repr(transparent)] 3017 pub struct PlaybackCommand(pub i32); 3018 impl PlaybackCommand { 3019 pub const Play: PlaybackCommand = PlaybackCommand(0i32); 3020 pub const Pause: PlaybackCommand = PlaybackCommand(1i32); 3021 pub const Stop: PlaybackCommand = PlaybackCommand(2i32); 3022 pub const Record: PlaybackCommand = PlaybackCommand(3i32); 3023 pub const FastForward: PlaybackCommand = PlaybackCommand(4i32); 3024 pub const Rewind: PlaybackCommand = PlaybackCommand(5i32); 3025 pub const Next: PlaybackCommand = PlaybackCommand(6i32); 3026 pub const Previous: PlaybackCommand = PlaybackCommand(7i32); 3027 pub const ChannelUp: PlaybackCommand = PlaybackCommand(8i32); 3028 pub const ChannelDown: PlaybackCommand = PlaybackCommand(9i32); 3029 } 3030 impl ::std::convert::From<i32> for PlaybackCommand { from(value: i32) -> Self3031 fn from(value: i32) -> Self { 3032 Self(value) 3033 } 3034 } 3035 unsafe impl ::windows::runtime::Abi for PlaybackCommand { 3036 type Abi = Self; 3037 type DefaultType = Self; 3038 } 3039 unsafe impl ::windows::runtime::RuntimeType for PlaybackCommand { 3040 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PlaybackCommand;i4)"); 3041 } 3042 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 3043 #[repr(transparent)] 3044 pub struct PlaybackStatus(pub i32); 3045 impl PlaybackStatus { 3046 pub const None: PlaybackStatus = PlaybackStatus(0i32); 3047 pub const TrackChanged: PlaybackStatus = PlaybackStatus(1i32); 3048 pub const Stopped: PlaybackStatus = PlaybackStatus(2i32); 3049 pub const Playing: PlaybackStatus = PlaybackStatus(3i32); 3050 pub const Paused: PlaybackStatus = PlaybackStatus(4i32); 3051 } 3052 impl ::std::convert::From<i32> for PlaybackStatus { from(value: i32) -> Self3053 fn from(value: i32) -> Self { 3054 Self(value) 3055 } 3056 } 3057 unsafe impl ::windows::runtime::Abi for PlaybackStatus { 3058 type Abi = Self; 3059 type DefaultType = Self; 3060 } 3061 unsafe impl ::windows::runtime::RuntimeType for PlaybackStatus { 3062 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PlaybackStatus;i4)"); 3063 } 3064 #[repr(transparent)] 3065 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3066 pub struct ReminderNotificationTriggerDetails(::windows::runtime::IInspectable); 3067 impl ReminderNotificationTriggerDetails { ReminderId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>3068 pub fn ReminderId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 3069 let this = self; 3070 unsafe { 3071 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 3072 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 3073 } 3074 } Title(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3075 pub fn Title(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3076 let this = self; 3077 unsafe { 3078 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3079 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3080 } 3081 } Description(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3082 pub fn Description(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3083 let this = self; 3084 unsafe { 3085 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3086 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3087 } 3088 } Details(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3089 pub fn Details(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3090 let this = self; 3091 unsafe { 3092 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3093 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3094 } 3095 } 3096 #[cfg(feature = "Foundation")] Timestamp(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>3097 pub fn Timestamp(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 3098 let this = self; 3099 unsafe { 3100 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 3101 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 3102 } 3103 } 3104 #[cfg(feature = "ApplicationModel_Appointments")] Appointment(&self) -> ::windows::runtime::Result<super::super::super::ApplicationModel::Appointments::Appointment>3105 pub fn Appointment(&self) -> ::windows::runtime::Result<super::super::super::ApplicationModel::Appointments::Appointment> { 3106 let this = self; 3107 unsafe { 3108 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3109 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::ApplicationModel::Appointments::Appointment>(result__) 3110 } 3111 } ReminderState(&self) -> ::windows::runtime::Result<ReminderState>3112 pub fn ReminderState(&self) -> ::windows::runtime::Result<ReminderState> { 3113 let this = self; 3114 unsafe { 3115 let mut result__: ReminderState = ::std::mem::zeroed(); 3116 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ReminderState>(result__) 3117 } 3118 } 3119 #[cfg(feature = "Foundation")] TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>3120 pub fn TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 3121 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3122 unsafe { 3123 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 3124 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 3125 } 3126 } AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3127 pub fn AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3128 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3129 unsafe { 3130 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3131 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3132 } 3133 } AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3134 pub fn AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3135 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3136 unsafe { 3137 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3138 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3139 } 3140 } AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType>3141 pub fn AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType> { 3142 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3143 unsafe { 3144 let mut result__: AccessoryNotificationType = ::std::mem::zeroed(); 3145 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AccessoryNotificationType>(result__) 3146 } 3147 } StartedProcessing(&self) -> ::windows::runtime::Result<bool>3148 pub fn StartedProcessing(&self) -> ::windows::runtime::Result<bool> { 3149 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3150 unsafe { 3151 let mut result__: bool = ::std::mem::zeroed(); 3152 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3153 } 3154 } SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()>3155 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()> { 3156 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3157 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 3158 } InstanceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3159 pub fn InstanceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3160 let this = &::windows::runtime::Interface::cast::<IReminderNotificationTriggerDetails2>(self)?; 3161 unsafe { 3162 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3163 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3164 } 3165 } 3166 } 3167 unsafe impl ::windows::runtime::RuntimeType for ReminderNotificationTriggerDetails { 3168 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.ReminderNotificationTriggerDetails;{5bddaa5d-9f61-4bf0-9feb-10502bc0b0c2})"); 3169 } 3170 unsafe impl ::windows::runtime::Interface for ReminderNotificationTriggerDetails { 3171 type Vtable = IReminderNotificationTriggerDetails_abi; 3172 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1541253725, 40801, 19440, [159, 235, 16, 80, 43, 192, 176, 194]); 3173 } 3174 impl ::windows::runtime::RuntimeName for ReminderNotificationTriggerDetails { 3175 const NAME: &'static str = "Windows.Phone.Notification.Management.ReminderNotificationTriggerDetails"; 3176 } 3177 impl ::std::convert::From<ReminderNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: ReminderNotificationTriggerDetails) -> Self3178 fn from(value: ReminderNotificationTriggerDetails) -> Self { 3179 unsafe { ::std::mem::transmute(value) } 3180 } 3181 } 3182 impl ::std::convert::From<&ReminderNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: &ReminderNotificationTriggerDetails) -> Self3183 fn from(value: &ReminderNotificationTriggerDetails) -> Self { 3184 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3185 } 3186 } 3187 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ReminderNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3188 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3189 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3190 } 3191 } 3192 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ReminderNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3193 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3194 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3195 } 3196 } 3197 impl ::std::convert::From<ReminderNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: ReminderNotificationTriggerDetails) -> Self3198 fn from(value: ReminderNotificationTriggerDetails) -> Self { 3199 value.0 3200 } 3201 } 3202 impl ::std::convert::From<&ReminderNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: &ReminderNotificationTriggerDetails) -> Self3203 fn from(value: &ReminderNotificationTriggerDetails) -> Self { 3204 value.0.clone() 3205 } 3206 } 3207 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ReminderNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3208 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3209 ::windows::runtime::Param::Owned(self.0) 3210 } 3211 } 3212 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ReminderNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3213 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3214 ::windows::runtime::Param::Borrowed(&self.0) 3215 } 3216 } 3217 impl ::std::convert::TryFrom<ReminderNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 3218 type Error = ::windows::runtime::Error; try_from(value: ReminderNotificationTriggerDetails) -> ::windows::runtime::Result<Self>3219 fn try_from(value: ReminderNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 3220 ::std::convert::TryFrom::try_from(&value) 3221 } 3222 } 3223 impl ::std::convert::TryFrom<&ReminderNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 3224 type Error = ::windows::runtime::Error; try_from(value: &ReminderNotificationTriggerDetails) -> ::windows::runtime::Result<Self>3225 fn try_from(value: &ReminderNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 3226 ::windows::runtime::Interface::cast(value) 3227 } 3228 } 3229 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for ReminderNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>3230 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 3231 ::windows::runtime::IntoParam::into_param(&self) 3232 } 3233 } 3234 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for &ReminderNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>3235 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 3236 ::std::convert::TryInto::<IAccessoryNotificationTriggerDetails>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 3237 } 3238 } 3239 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 3240 #[repr(transparent)] 3241 pub struct ReminderState(pub i32); 3242 impl ReminderState { 3243 pub const Active: ReminderState = ReminderState(0i32); 3244 pub const Snoozed: ReminderState = ReminderState(1i32); 3245 pub const Dismissed: ReminderState = ReminderState(2i32); 3246 } 3247 impl ::std::convert::From<i32> for ReminderState { from(value: i32) -> Self3248 fn from(value: i32) -> Self { 3249 Self(value) 3250 } 3251 } 3252 unsafe impl ::windows::runtime::Abi for ReminderState { 3253 type Abi = Self; 3254 type DefaultType = Self; 3255 } 3256 unsafe impl ::windows::runtime::RuntimeType for ReminderState { 3257 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.ReminderState;i4)"); 3258 } 3259 #[repr(transparent)] 3260 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3261 pub struct SpeedDialEntry(::windows::runtime::IInspectable); 3262 impl SpeedDialEntry { PhoneNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3263 pub fn PhoneNumber(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3264 let this = self; 3265 unsafe { 3266 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3267 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3268 } 3269 } NumberType(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3270 pub fn NumberType(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3271 let this = self; 3272 unsafe { 3273 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3274 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3275 } 3276 } ContactName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3277 pub fn ContactName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3278 let this = self; 3279 unsafe { 3280 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3281 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3282 } 3283 } 3284 } 3285 unsafe impl ::windows::runtime::RuntimeType for SpeedDialEntry { 3286 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.SpeedDialEntry;{9240b6db-872c-46dc-b62a-be4541b166f8})"); 3287 } 3288 unsafe impl ::windows::runtime::Interface for SpeedDialEntry { 3289 type Vtable = ISpeedDialEntry_abi; 3290 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2453714651, 34604, 18140, [182, 42, 190, 69, 65, 177, 102, 248]); 3291 } 3292 impl ::windows::runtime::RuntimeName for SpeedDialEntry { 3293 const NAME: &'static str = "Windows.Phone.Notification.Management.SpeedDialEntry"; 3294 } 3295 impl ::std::convert::From<SpeedDialEntry> for ::windows::runtime::IUnknown { from(value: SpeedDialEntry) -> Self3296 fn from(value: SpeedDialEntry) -> Self { 3297 unsafe { ::std::mem::transmute(value) } 3298 } 3299 } 3300 impl ::std::convert::From<&SpeedDialEntry> for ::windows::runtime::IUnknown { from(value: &SpeedDialEntry) -> Self3301 fn from(value: &SpeedDialEntry) -> Self { 3302 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3303 } 3304 } 3305 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for SpeedDialEntry { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3306 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3307 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3308 } 3309 } 3310 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &SpeedDialEntry { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3311 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3312 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3313 } 3314 } 3315 impl ::std::convert::From<SpeedDialEntry> for ::windows::runtime::IInspectable { from(value: SpeedDialEntry) -> Self3316 fn from(value: SpeedDialEntry) -> Self { 3317 value.0 3318 } 3319 } 3320 impl ::std::convert::From<&SpeedDialEntry> for ::windows::runtime::IInspectable { from(value: &SpeedDialEntry) -> Self3321 fn from(value: &SpeedDialEntry) -> Self { 3322 value.0.clone() 3323 } 3324 } 3325 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for SpeedDialEntry { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3326 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3327 ::windows::runtime::Param::Owned(self.0) 3328 } 3329 } 3330 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a SpeedDialEntry { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3331 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3332 ::windows::runtime::Param::Borrowed(&self.0) 3333 } 3334 } 3335 #[repr(transparent)] 3336 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3337 pub struct TextResponse(::windows::runtime::IInspectable); 3338 impl TextResponse { Id(&self) -> ::windows::runtime::Result<u32>3339 pub fn Id(&self) -> ::windows::runtime::Result<u32> { 3340 let this = self; 3341 unsafe { 3342 let mut result__: u32 = ::std::mem::zeroed(); 3343 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 3344 } 3345 } Content(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3346 pub fn Content(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3347 let this = self; 3348 unsafe { 3349 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3350 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3351 } 3352 } 3353 } 3354 unsafe impl ::windows::runtime::RuntimeType for TextResponse { 3355 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.TextResponse;{e9cb74c3-2457-4cdb-8110-72f5e8e883e8})"); 3356 } 3357 unsafe impl ::windows::runtime::Interface for TextResponse { 3358 type Vtable = ITextResponse_abi; 3359 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3922425027, 9303, 19675, [129, 16, 114, 245, 232, 232, 131, 232]); 3360 } 3361 impl ::windows::runtime::RuntimeName for TextResponse { 3362 const NAME: &'static str = "Windows.Phone.Notification.Management.TextResponse"; 3363 } 3364 impl ::std::convert::From<TextResponse> for ::windows::runtime::IUnknown { from(value: TextResponse) -> Self3365 fn from(value: TextResponse) -> Self { 3366 unsafe { ::std::mem::transmute(value) } 3367 } 3368 } 3369 impl ::std::convert::From<&TextResponse> for ::windows::runtime::IUnknown { from(value: &TextResponse) -> Self3370 fn from(value: &TextResponse) -> Self { 3371 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3372 } 3373 } 3374 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for TextResponse { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3375 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3376 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3377 } 3378 } 3379 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &TextResponse { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3380 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3381 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3382 } 3383 } 3384 impl ::std::convert::From<TextResponse> for ::windows::runtime::IInspectable { from(value: TextResponse) -> Self3385 fn from(value: TextResponse) -> Self { 3386 value.0 3387 } 3388 } 3389 impl ::std::convert::From<&TextResponse> for ::windows::runtime::IInspectable { from(value: &TextResponse) -> Self3390 fn from(value: &TextResponse) -> Self { 3391 value.0.clone() 3392 } 3393 } 3394 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for TextResponse { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3395 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3396 ::windows::runtime::Param::Owned(self.0) 3397 } 3398 } 3399 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a TextResponse { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3400 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3401 ::windows::runtime::Param::Borrowed(&self.0) 3402 } 3403 } 3404 #[repr(transparent)] 3405 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3406 pub struct ToastNotificationTriggerDetails(::windows::runtime::IInspectable); 3407 impl ToastNotificationTriggerDetails { Text1(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3408 pub fn Text1(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3409 let this = self; 3410 unsafe { 3411 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3412 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3413 } 3414 } Text2(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3415 pub fn Text2(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3416 let this = self; 3417 unsafe { 3418 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3419 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3420 } 3421 } Text3(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3422 pub fn Text3(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3423 let this = self; 3424 unsafe { 3425 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3426 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3427 } 3428 } Text4(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3429 pub fn Text4(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3430 let this = self; 3431 unsafe { 3432 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3433 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3434 } 3435 } SuppressPopup(&self) -> ::windows::runtime::Result<bool>3436 pub fn SuppressPopup(&self) -> ::windows::runtime::Result<bool> { 3437 let this = self; 3438 unsafe { 3439 let mut result__: bool = ::std::mem::zeroed(); 3440 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3441 } 3442 } 3443 #[cfg(feature = "Foundation")] TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime>3444 pub fn TimeCreated(&self) -> ::windows::runtime::Result<super::super::super::Foundation::DateTime> { 3445 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3446 unsafe { 3447 let mut result__: super::super::super::Foundation::DateTime = ::std::mem::zeroed(); 3448 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::DateTime>(result__) 3449 } 3450 } AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3451 pub fn AppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3452 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3453 unsafe { 3454 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3455 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3456 } 3457 } AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3458 pub fn AppId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3459 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3460 unsafe { 3461 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3462 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3463 } 3464 } AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType>3465 pub fn AccessoryNotificationType(&self) -> ::windows::runtime::Result<AccessoryNotificationType> { 3466 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3467 unsafe { 3468 let mut result__: AccessoryNotificationType = ::std::mem::zeroed(); 3469 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AccessoryNotificationType>(result__) 3470 } 3471 } StartedProcessing(&self) -> ::windows::runtime::Result<bool>3472 pub fn StartedProcessing(&self) -> ::windows::runtime::Result<bool> { 3473 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3474 unsafe { 3475 let mut result__: bool = ::std::mem::zeroed(); 3476 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3477 } 3478 } SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()>3479 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::runtime::Result<()> { 3480 let this = &::windows::runtime::Interface::cast::<IAccessoryNotificationTriggerDetails>(self)?; 3481 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 3482 } InstanceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3483 pub fn InstanceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3484 let this = &::windows::runtime::Interface::cast::<IToastNotificationTriggerDetails2>(self)?; 3485 unsafe { 3486 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3487 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3488 } 3489 } 3490 } 3491 unsafe impl ::windows::runtime::RuntimeType for ToastNotificationTriggerDetails { 3492 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.ToastNotificationTriggerDetails;{c9314895-4e6d-4e9d-afec-9e921b875ae8})"); 3493 } 3494 unsafe impl ::windows::runtime::Interface for ToastNotificationTriggerDetails { 3495 type Vtable = IToastNotificationTriggerDetails_abi; 3496 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3375450261, 20077, 20125, [175, 236, 158, 146, 27, 135, 90, 232]); 3497 } 3498 impl ::windows::runtime::RuntimeName for ToastNotificationTriggerDetails { 3499 const NAME: &'static str = "Windows.Phone.Notification.Management.ToastNotificationTriggerDetails"; 3500 } 3501 impl ::std::convert::From<ToastNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: ToastNotificationTriggerDetails) -> Self3502 fn from(value: ToastNotificationTriggerDetails) -> Self { 3503 unsafe { ::std::mem::transmute(value) } 3504 } 3505 } 3506 impl ::std::convert::From<&ToastNotificationTriggerDetails> for ::windows::runtime::IUnknown { from(value: &ToastNotificationTriggerDetails) -> Self3507 fn from(value: &ToastNotificationTriggerDetails) -> Self { 3508 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3509 } 3510 } 3511 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ToastNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3512 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3513 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3514 } 3515 } 3516 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ToastNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3517 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3518 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3519 } 3520 } 3521 impl ::std::convert::From<ToastNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: ToastNotificationTriggerDetails) -> Self3522 fn from(value: ToastNotificationTriggerDetails) -> Self { 3523 value.0 3524 } 3525 } 3526 impl ::std::convert::From<&ToastNotificationTriggerDetails> for ::windows::runtime::IInspectable { from(value: &ToastNotificationTriggerDetails) -> Self3527 fn from(value: &ToastNotificationTriggerDetails) -> Self { 3528 value.0.clone() 3529 } 3530 } 3531 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ToastNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3532 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3533 ::windows::runtime::Param::Owned(self.0) 3534 } 3535 } 3536 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ToastNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3537 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3538 ::windows::runtime::Param::Borrowed(&self.0) 3539 } 3540 } 3541 impl ::std::convert::TryFrom<ToastNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 3542 type Error = ::windows::runtime::Error; try_from(value: ToastNotificationTriggerDetails) -> ::windows::runtime::Result<Self>3543 fn try_from(value: ToastNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 3544 ::std::convert::TryFrom::try_from(&value) 3545 } 3546 } 3547 impl ::std::convert::TryFrom<&ToastNotificationTriggerDetails> for IAccessoryNotificationTriggerDetails { 3548 type Error = ::windows::runtime::Error; try_from(value: &ToastNotificationTriggerDetails) -> ::windows::runtime::Result<Self>3549 fn try_from(value: &ToastNotificationTriggerDetails) -> ::windows::runtime::Result<Self> { 3550 ::windows::runtime::Interface::cast(value) 3551 } 3552 } 3553 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for ToastNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>3554 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 3555 ::windows::runtime::IntoParam::into_param(&self) 3556 } 3557 } 3558 impl<'a> ::windows::runtime::IntoParam<'a, IAccessoryNotificationTriggerDetails> for &ToastNotificationTriggerDetails { into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails>3559 fn into_param(self) -> ::windows::runtime::Param<'a, IAccessoryNotificationTriggerDetails> { 3560 ::std::convert::TryInto::<IAccessoryNotificationTriggerDetails>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 3561 } 3562 } 3563 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 3564 #[repr(transparent)] 3565 pub struct VibrateState(pub i32); 3566 impl VibrateState { 3567 pub const RingerOffVibrateOff: VibrateState = VibrateState(0i32); 3568 pub const RingerOffVibrateOn: VibrateState = VibrateState(1i32); 3569 pub const RingerOnVibrateOff: VibrateState = VibrateState(2i32); 3570 pub const RingerOnVibrateOn: VibrateState = VibrateState(3i32); 3571 } 3572 impl ::std::convert::From<i32> for VibrateState { from(value: i32) -> Self3573 fn from(value: i32) -> Self { 3574 Self(value) 3575 } 3576 } 3577 unsafe impl ::windows::runtime::Abi for VibrateState { 3578 type Abi = Self; 3579 type DefaultType = Self; 3580 } 3581 unsafe impl ::windows::runtime::RuntimeType for VibrateState { 3582 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.VibrateState;i4)"); 3583 } 3584 #[repr(transparent)] 3585 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3586 pub struct VolumeInfo(::windows::runtime::IInspectable); 3587 impl VolumeInfo { SystemVolume(&self) -> ::windows::runtime::Result<u32>3588 pub fn SystemVolume(&self) -> ::windows::runtime::Result<u32> { 3589 let this = self; 3590 unsafe { 3591 let mut result__: u32 = ::std::mem::zeroed(); 3592 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 3593 } 3594 } CallVolume(&self) -> ::windows::runtime::Result<u32>3595 pub fn CallVolume(&self) -> ::windows::runtime::Result<u32> { 3596 let this = self; 3597 unsafe { 3598 let mut result__: u32 = ::std::mem::zeroed(); 3599 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 3600 } 3601 } MediaVolume(&self) -> ::windows::runtime::Result<u32>3602 pub fn MediaVolume(&self) -> ::windows::runtime::Result<u32> { 3603 let this = self; 3604 unsafe { 3605 let mut result__: u32 = ::std::mem::zeroed(); 3606 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 3607 } 3608 } IsMuted(&self) -> ::windows::runtime::Result<bool>3609 pub fn IsMuted(&self) -> ::windows::runtime::Result<bool> { 3610 let this = self; 3611 unsafe { 3612 let mut result__: bool = ::std::mem::zeroed(); 3613 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3614 } 3615 } IsVibrateEnabled(&self) -> ::windows::runtime::Result<VibrateState>3616 pub fn IsVibrateEnabled(&self) -> ::windows::runtime::Result<VibrateState> { 3617 let this = self; 3618 unsafe { 3619 let mut result__: VibrateState = ::std::mem::zeroed(); 3620 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<VibrateState>(result__) 3621 } 3622 } 3623 } 3624 unsafe impl ::windows::runtime::RuntimeType for VolumeInfo { 3625 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.VolumeInfo;{944dd118-7704-4481-b92e-d3ed3ece6322})"); 3626 } 3627 unsafe impl ::windows::runtime::Interface for VolumeInfo { 3628 type Vtable = IVolumeInfo_abi; 3629 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2488127768, 30468, 17537, [185, 46, 211, 237, 62, 206, 99, 34]); 3630 } 3631 impl ::windows::runtime::RuntimeName for VolumeInfo { 3632 const NAME: &'static str = "Windows.Phone.Notification.Management.VolumeInfo"; 3633 } 3634 impl ::std::convert::From<VolumeInfo> for ::windows::runtime::IUnknown { from(value: VolumeInfo) -> Self3635 fn from(value: VolumeInfo) -> Self { 3636 unsafe { ::std::mem::transmute(value) } 3637 } 3638 } 3639 impl ::std::convert::From<&VolumeInfo> for ::windows::runtime::IUnknown { from(value: &VolumeInfo) -> Self3640 fn from(value: &VolumeInfo) -> Self { 3641 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3642 } 3643 } 3644 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for VolumeInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3645 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3646 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3647 } 3648 } 3649 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &VolumeInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3650 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3651 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3652 } 3653 } 3654 impl ::std::convert::From<VolumeInfo> for ::windows::runtime::IInspectable { from(value: VolumeInfo) -> Self3655 fn from(value: VolumeInfo) -> Self { 3656 value.0 3657 } 3658 } 3659 impl ::std::convert::From<&VolumeInfo> for ::windows::runtime::IInspectable { from(value: &VolumeInfo) -> Self3660 fn from(value: &VolumeInfo) -> Self { 3661 value.0.clone() 3662 } 3663 } 3664 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for VolumeInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3665 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3666 ::windows::runtime::Param::Owned(self.0) 3667 } 3668 } 3669 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a VolumeInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3670 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3671 ::windows::runtime::Param::Borrowed(&self.0) 3672 } 3673 } 3674