1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] 2 #[cfg(feature = "Web_AtomPub")] 3 pub mod AtomPub; 4 #[cfg(feature = "Web_Http")] 5 pub mod Http; 6 #[cfg(feature = "Web_Syndication")] 7 pub mod Syndication; 8 #[cfg(feature = "Web_UI")] 9 pub mod UI; 10 #[repr(transparent)] 11 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 12 pub struct IUriToStreamResolver(::windows::runtime::IInspectable); 13 unsafe impl ::windows::runtime::Interface for IUriToStreamResolver { 14 type Vtable = IUriToStreamResolver_abi; 15 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2964039786, 39659, 19770, [149, 144, 0, 62, 60, 167, 226, 144]); 16 } 17 impl IUriToStreamResolver { 18 #[cfg(all(feature = "Foundation", feature = "Storage_Streams"))] 19 pub fn UriToStreamAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::Foundation::Uri>>(&self, uri: Param0) -> ::windows::runtime::Result<super::Foundation::IAsyncOperation<super::Storage::Streams::IInputStream>> { 20 let this = self; 21 unsafe { 22 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 23 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), uri.into_param().abi(), &mut result__).from_abi::<super::Foundation::IAsyncOperation<super::Storage::Streams::IInputStream>>(result__) 24 } 25 } 26 } 27 unsafe impl ::windows::runtime::RuntimeType for IUriToStreamResolver { 28 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"{b0aba86a-9aeb-4d3a-9590-003e3ca7e290}"); 29 } 30 impl ::std::convert::From<IUriToStreamResolver> for ::windows::runtime::IUnknown { 31 fn from(value: IUriToStreamResolver) -> Self { 32 unsafe { ::std::mem::transmute(value) } 33 } 34 } 35 impl ::std::convert::From<&IUriToStreamResolver> for ::windows::runtime::IUnknown { 36 fn from(value: &IUriToStreamResolver) -> Self { 37 ::std::convert::From::from(::std::clone::Clone::clone(value)) 38 } 39 } 40 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IUriToStreamResolver { 41 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 42 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 43 } 44 } 45 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IUriToStreamResolver { 46 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 47 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 48 } 49 } 50 impl ::std::convert::From<IUriToStreamResolver> for ::windows::runtime::IInspectable { 51 fn from(value: IUriToStreamResolver) -> Self { 52 value.0 53 } 54 } 55 impl ::std::convert::From<&IUriToStreamResolver> for ::windows::runtime::IInspectable { 56 fn from(value: &IUriToStreamResolver) -> Self { 57 value.0.clone() 58 } 59 } 60 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for IUriToStreamResolver { 61 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 62 ::windows::runtime::Param::Owned(self.0) 63 } 64 } 65 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a IUriToStreamResolver { 66 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 67 ::windows::runtime::Param::Borrowed(&self.0) 68 } 69 } 70 #[repr(C)] 71 #[doc(hidden)] 72 pub struct IUriToStreamResolver_abi( 73 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 74 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 75 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 76 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 77 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 78 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 79 #[cfg(all(feature = "Foundation", feature = "Storage_Streams"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, uri: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 80 #[cfg(not(all(feature = "Foundation", feature = "Storage_Streams")))] usize, 81 ); 82 #[repr(transparent)] 83 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 84 #[doc(hidden)] 85 pub struct IWebErrorStatics(::windows::runtime::IInspectable); 86 unsafe impl ::windows::runtime::Interface for IWebErrorStatics { 87 type Vtable = IWebErrorStatics_abi; 88 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4267796326, 48935, 16484, [135, 183, 101, 99, 187, 17, 206, 46]); 89 } 90 #[repr(C)] 91 #[doc(hidden)] 92 pub struct IWebErrorStatics_abi( 93 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 94 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 95 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 96 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 97 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 98 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 99 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, hresult: i32, result__: *mut WebErrorStatus) -> ::windows::runtime::HRESULT, 100 ); 101 pub struct WebError {} 102 impl WebError { 103 pub fn GetStatus(hresult: i32) -> ::windows::runtime::Result<WebErrorStatus> { 104 Self::IWebErrorStatics(|this| unsafe { 105 let mut result__: WebErrorStatus = ::std::mem::zeroed(); 106 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), hresult, &mut result__).from_abi::<WebErrorStatus>(result__) 107 }) 108 } 109 pub fn IWebErrorStatics<R, F: FnOnce(&IWebErrorStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 110 static mut SHARED: ::windows::runtime::FactoryCache<WebError, IWebErrorStatics> = ::windows::runtime::FactoryCache::new(); 111 unsafe { SHARED.call(callback) } 112 } 113 } 114 impl ::windows::runtime::RuntimeName for WebError { 115 const NAME: &'static str = "Windows.Web.WebError"; 116 } 117 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 118 #[repr(transparent)] 119 pub struct WebErrorStatus(pub i32); 120 impl WebErrorStatus { 121 pub const Unknown: WebErrorStatus = WebErrorStatus(0i32); 122 pub const CertificateCommonNameIsIncorrect: WebErrorStatus = WebErrorStatus(1i32); 123 pub const CertificateExpired: WebErrorStatus = WebErrorStatus(2i32); 124 pub const CertificateContainsErrors: WebErrorStatus = WebErrorStatus(3i32); 125 pub const CertificateRevoked: WebErrorStatus = WebErrorStatus(4i32); 126 pub const CertificateIsInvalid: WebErrorStatus = WebErrorStatus(5i32); 127 pub const ServerUnreachable: WebErrorStatus = WebErrorStatus(6i32); 128 pub const Timeout: WebErrorStatus = WebErrorStatus(7i32); 129 pub const ErrorHttpInvalidServerResponse: WebErrorStatus = WebErrorStatus(8i32); 130 pub const ConnectionAborted: WebErrorStatus = WebErrorStatus(9i32); 131 pub const ConnectionReset: WebErrorStatus = WebErrorStatus(10i32); 132 pub const Disconnected: WebErrorStatus = WebErrorStatus(11i32); 133 pub const HttpToHttpsOnRedirection: WebErrorStatus = WebErrorStatus(12i32); 134 pub const HttpsToHttpOnRedirection: WebErrorStatus = WebErrorStatus(13i32); 135 pub const CannotConnect: WebErrorStatus = WebErrorStatus(14i32); 136 pub const HostNameNotResolved: WebErrorStatus = WebErrorStatus(15i32); 137 pub const OperationCanceled: WebErrorStatus = WebErrorStatus(16i32); 138 pub const RedirectFailed: WebErrorStatus = WebErrorStatus(17i32); 139 pub const UnexpectedStatusCode: WebErrorStatus = WebErrorStatus(18i32); 140 pub const UnexpectedRedirection: WebErrorStatus = WebErrorStatus(19i32); 141 pub const UnexpectedClientError: WebErrorStatus = WebErrorStatus(20i32); 142 pub const UnexpectedServerError: WebErrorStatus = WebErrorStatus(21i32); 143 pub const InsufficientRangeSupport: WebErrorStatus = WebErrorStatus(22i32); 144 pub const MissingContentLengthSupport: WebErrorStatus = WebErrorStatus(23i32); 145 pub const MultipleChoices: WebErrorStatus = WebErrorStatus(300i32); 146 pub const MovedPermanently: WebErrorStatus = WebErrorStatus(301i32); 147 pub const Found: WebErrorStatus = WebErrorStatus(302i32); 148 pub const SeeOther: WebErrorStatus = WebErrorStatus(303i32); 149 pub const NotModified: WebErrorStatus = WebErrorStatus(304i32); 150 pub const UseProxy: WebErrorStatus = WebErrorStatus(305i32); 151 pub const TemporaryRedirect: WebErrorStatus = WebErrorStatus(307i32); 152 pub const BadRequest: WebErrorStatus = WebErrorStatus(400i32); 153 pub const Unauthorized: WebErrorStatus = WebErrorStatus(401i32); 154 pub const PaymentRequired: WebErrorStatus = WebErrorStatus(402i32); 155 pub const Forbidden: WebErrorStatus = WebErrorStatus(403i32); 156 pub const NotFound: WebErrorStatus = WebErrorStatus(404i32); 157 pub const MethodNotAllowed: WebErrorStatus = WebErrorStatus(405i32); 158 pub const NotAcceptable: WebErrorStatus = WebErrorStatus(406i32); 159 pub const ProxyAuthenticationRequired: WebErrorStatus = WebErrorStatus(407i32); 160 pub const RequestTimeout: WebErrorStatus = WebErrorStatus(408i32); 161 pub const Conflict: WebErrorStatus = WebErrorStatus(409i32); 162 pub const Gone: WebErrorStatus = WebErrorStatus(410i32); 163 pub const LengthRequired: WebErrorStatus = WebErrorStatus(411i32); 164 pub const PreconditionFailed: WebErrorStatus = WebErrorStatus(412i32); 165 pub const RequestEntityTooLarge: WebErrorStatus = WebErrorStatus(413i32); 166 pub const RequestUriTooLong: WebErrorStatus = WebErrorStatus(414i32); 167 pub const UnsupportedMediaType: WebErrorStatus = WebErrorStatus(415i32); 168 pub const RequestedRangeNotSatisfiable: WebErrorStatus = WebErrorStatus(416i32); 169 pub const ExpectationFailed: WebErrorStatus = WebErrorStatus(417i32); 170 pub const InternalServerError: WebErrorStatus = WebErrorStatus(500i32); 171 pub const NotImplemented: WebErrorStatus = WebErrorStatus(501i32); 172 pub const BadGateway: WebErrorStatus = WebErrorStatus(502i32); 173 pub const ServiceUnavailable: WebErrorStatus = WebErrorStatus(503i32); 174 pub const GatewayTimeout: WebErrorStatus = WebErrorStatus(504i32); 175 pub const HttpVersionNotSupported: WebErrorStatus = WebErrorStatus(505i32); 176 } 177 impl ::std::convert::From<i32> for WebErrorStatus { 178 fn from(value: i32) -> Self { 179 Self(value) 180 } 181 } 182 unsafe impl ::windows::runtime::Abi for WebErrorStatus { 183 type Abi = Self; 184 type DefaultType = Self; 185 } 186 unsafe impl ::windows::runtime::RuntimeType for WebErrorStatus { 187 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Web.WebErrorStatus;i4)"); 188 } 189