engage/generated/unity_engine/networking/
unitywebrequestasyncoperation.rs1#[cfg(feature = "unity_engine-networking-unitywebrequestasyncoperation-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 asyncoperation::{AsyncOperation, IAsyncOperation},
12 yieldinstruction::{IYieldInstruction, YieldInstruction},
13 },
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/unitywebrequestasyncoperation/UnityWebRequestAsyncOperation.md"))]
17 #[::unity::class(namespace = "UnityEngine.Networking", name = "UnityWebRequestAsyncOperation")]
18 #[parent(crate::unity_engine::asyncoperation::AsyncOperation)]
19 pub struct UnityWebRequestAsyncOperation {}
20}
21
22#[cfg(feature = "unity_engine-networking-unitywebrequestasyncoperation-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-networking-unitywebrequestasyncoperation")]
26pub trait IUnityWebRequestAsyncOperationMethods: IUnityWebRequestAsyncOperation {
27 #[doc = "`get_webRequest()` overload"]
28 fn get_web_request(self) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest {
29 unsafe {
30 let __receiver =
31 <UnityWebRequestAsyncOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x3f1cb00usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest;
33(UnityWebRequestAsyncOperation)__receiver)
34 }
35 }
36 #[doc = "`set_webRequest(crate::unity_engine::networking::unitywebrequest::UnityWebRequest)` overload"]
37 fn set_web_request(self, value: impl ::core::convert::Into<crate::unity_engine::networking::unitywebrequest::UnityWebRequest>) -> () {
38 unsafe {
39 let __receiver =
40 <UnityWebRequestAsyncOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x3f1cb10usize)as*mut u8,();
42(UnityWebRequestAsyncOperation)__receiver,(crate::unity_engine::networking::unitywebrequest::UnityWebRequest)::core::convert::Into::into(value))
43 }
44 }
45 #[doc = "`.ctor()` overload"]
46 fn ctor(self) -> () {
47 unsafe {
48 let __receiver =
49 <UnityWebRequestAsyncOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 ::unity::il2cpp_call!((::unity::module_base()+0x3f1cb20usize)as*mut u8,();
51(UnityWebRequestAsyncOperation)__receiver)
52 }
53 }
54}
55
56#[cfg(feature = "unity_engine-networking-unitywebrequestasyncoperation")]
57impl<__T: IUnityWebRequestAsyncOperation> IUnityWebRequestAsyncOperationMethods for __T {}
58
59#[cfg(feature = "unity_engine-networking-unitywebrequestasyncoperation")]
60impl UnityWebRequestAsyncOperation {
61 pub fn get_web_request_method_info() -> &'static ::unity::il2cpp::MethodInfo {
62 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
63 }
64
65 pub fn set_web_request_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
67 }
68
69 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
71 }
72}
73
74#[cfg(feature = "unity_engine-networking-unitywebrequestasyncoperation")]
75impl UnityWebRequestAsyncOperation {
76 #[doc = "`.ctor()` — no args"]
77 pub fn new() -> Self {
78 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
79 panic!(
80 "{}
81::{}
82 failed to instantiate",
83 ::core::stringify!(UnityWebRequestAsyncOperation),
84 ::core::stringify!(new),
85 )
86 });
87 <Self as IUnityWebRequestAsyncOperationMethods>::ctor(this);
88 this
89 }
90}
91
92#[cfg(feature = "unity_engine-networking-unitywebrequestasyncoperation")]
93#[doc(hidden)]
94pub mod prelude {
95 pub use super::{IUnityWebRequestAsyncOperation, IUnityWebRequestAsyncOperationMethods, UnityWebRequestAsyncOperation};
96 #[cfg(feature = "system-object")]
97 pub use crate::system::object::IObjectMethods;
98 #[cfg(feature = "unity_engine-asyncoperation")]
99 pub use crate::unity_engine::asyncoperation::IAsyncOperationMethods;
100 #[cfg(feature = "unity_engine-yieldinstruction")]
101 pub use crate::unity_engine::yieldinstruction::IYieldInstructionMethods;
102 pub use crate::{
103 system::object::IObject,
104 unity_engine::{asyncoperation::IAsyncOperation, yieldinstruction::IYieldInstruction},
105 };
106}