]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Web/mod.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Web / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, 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 pub type IUriToStreamResolver = *mut ::core::ffi::c_void;
11 #[doc = "*Required features: `\"Web\"`*"]
12 #[repr(transparent)]
13 pub struct WebErrorStatus(pub i32);
14 impl WebErrorStatus {
15 pub const Unknown: Self = Self(0i32);
16 pub const CertificateCommonNameIsIncorrect: Self = Self(1i32);
17 pub const CertificateExpired: Self = Self(2i32);
18 pub const CertificateContainsErrors: Self = Self(3i32);
19 pub const CertificateRevoked: Self = Self(4i32);
20 pub const CertificateIsInvalid: Self = Self(5i32);
21 pub const ServerUnreachable: Self = Self(6i32);
22 pub const Timeout: Self = Self(7i32);
23 pub const ErrorHttpInvalidServerResponse: Self = Self(8i32);
24 pub const ConnectionAborted: Self = Self(9i32);
25 pub const ConnectionReset: Self = Self(10i32);
26 pub const Disconnected: Self = Self(11i32);
27 pub const HttpToHttpsOnRedirection: Self = Self(12i32);
28 pub const HttpsToHttpOnRedirection: Self = Self(13i32);
29 pub const CannotConnect: Self = Self(14i32);
30 pub const HostNameNotResolved: Self = Self(15i32);
31 pub const OperationCanceled: Self = Self(16i32);
32 pub const RedirectFailed: Self = Self(17i32);
33 pub const UnexpectedStatusCode: Self = Self(18i32);
34 pub const UnexpectedRedirection: Self = Self(19i32);
35 pub const UnexpectedClientError: Self = Self(20i32);
36 pub const UnexpectedServerError: Self = Self(21i32);
37 pub const InsufficientRangeSupport: Self = Self(22i32);
38 pub const MissingContentLengthSupport: Self = Self(23i32);
39 pub const MultipleChoices: Self = Self(300i32);
40 pub const MovedPermanently: Self = Self(301i32);
41 pub const Found: Self = Self(302i32);
42 pub const SeeOther: Self = Self(303i32);
43 pub const NotModified: Self = Self(304i32);
44 pub const UseProxy: Self = Self(305i32);
45 pub const TemporaryRedirect: Self = Self(307i32);
46 pub const BadRequest: Self = Self(400i32);
47 pub const Unauthorized: Self = Self(401i32);
48 pub const PaymentRequired: Self = Self(402i32);
49 pub const Forbidden: Self = Self(403i32);
50 pub const NotFound: Self = Self(404i32);
51 pub const MethodNotAllowed: Self = Self(405i32);
52 pub const NotAcceptable: Self = Self(406i32);
53 pub const ProxyAuthenticationRequired: Self = Self(407i32);
54 pub const RequestTimeout: Self = Self(408i32);
55 pub const Conflict: Self = Self(409i32);
56 pub const Gone: Self = Self(410i32);
57 pub const LengthRequired: Self = Self(411i32);
58 pub const PreconditionFailed: Self = Self(412i32);
59 pub const RequestEntityTooLarge: Self = Self(413i32);
60 pub const RequestUriTooLong: Self = Self(414i32);
61 pub const UnsupportedMediaType: Self = Self(415i32);
62 pub const RequestedRangeNotSatisfiable: Self = Self(416i32);
63 pub const ExpectationFailed: Self = Self(417i32);
64 pub const InternalServerError: Self = Self(500i32);
65 pub const NotImplemented: Self = Self(501i32);
66 pub const BadGateway: Self = Self(502i32);
67 pub const ServiceUnavailable: Self = Self(503i32);
68 pub const GatewayTimeout: Self = Self(504i32);
69 pub const HttpVersionNotSupported: Self = Self(505i32);
70 }
71 impl ::core::marker::Copy for WebErrorStatus {}
72 impl ::core::clone::Clone for WebErrorStatus {
73 fn clone(&self) -> Self {
74 *self
75 }
76 }