engage/generated/unity_engine/resource_management/exceptions/
remoteproviderexception.rs1#[cfg(feature = "unity_engine-resource_management-exceptions-remoteproviderexception-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::resource_management::exceptions::{
11 operationexception::{IOperationException, OperationException},
12 providerexception::{IProviderException, ProviderException},
13 },
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/exceptions/remoteproviderexception/RemoteProviderException.md"))]
17 #[::unity::class(namespace = "UnityEngine.ResourceManagement.Exceptions", name = "RemoteProviderException")]
18 #[parent(crate::unity_engine::resource_management::exceptions::providerexception::ProviderException)]
19 pub struct RemoteProviderException {}
20}
21
22#[cfg(feature = "unity_engine-resource_management-exceptions-remoteproviderexception-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-resource_management-exceptions-remoteproviderexception")]
26#[doc(hidden)]
27#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
28mod __RemoteProviderException_unity_raw {
29 use super::*;
30 #[doc(hidden)]
31 #[allow(non_snake_case)]
32 pub mod __lookup_get_web_request_result {
33 use super::*;
34 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
35 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
36 ::unity::lookup::method_info_on_class_with_signature(
37 <RemoteProviderException as ::unity::ClassIdentity>::class(),
38 "get_WebRequestResult",
39 0,
40 param_types,
41 false,
42 )
43 });
44 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
45 match &*METHOD {
46 ::core::result::Result::Ok(mi) => *mi,
47 ::core::result::Result::Err(e) => {
48 panic!(
49 "method lookup failed: {}
50::{}
51: {}
52",
53 <RemoteProviderException as ::unity::ClassIdentity>::NAME,
54 "get_WebRequestResult",
55 e
56 )
57 },
58 }
59 }
60 }
61}
62
63#[cfg(feature = "unity_engine-resource_management-exceptions-remoteproviderexception")]
64pub trait IRemoteProviderExceptionMethods: IRemoteProviderException {
65 #[doc = "`get_WebRequestResult()` overload"]
66 fn get_web_request_result(self) -> crate::unity_engine::resource_management::util::unitywebrequestresult::UnityWebRequestResult {
67 unsafe {
68 let __receiver =
69 <RemoteProviderException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 ::unity::il2cpp_call!(__RemoteProviderException_unity_raw::__lookup_get_web_request_result::get_method_info().method_ptr,crate::unity_engine::resource_management::util::unitywebrequestresult::UnityWebRequestResult;
71(RemoteProviderException)__receiver)
72 }
73 }
74 #[doc = "`ToString()` overload"]
75 fn to_string(self) -> ::unity::Il2CppString {
76 unsafe {
77 let __receiver =
78 <RemoteProviderException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 {
80 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
81 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
82 panic!(
83 "unity: virtual slot {}
84 out of range (vtable len {}
85) on the runtime class behind {}
86 (method `{}
87`)",
88 3usize,
89 __vt.len(),
90 <RemoteProviderException as ::unity::ClassIdentity>::NAME,
91 "ToString",
92 )
93 });
94 let __inner: extern "C" fn(RemoteProviderException, ::unity::OptionalMethod) -> ::unity::Il2CppString =
95 ::core::mem::transmute(__vi.method_ptr);
96 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97 __inner(__receiver, __mi)
98 }
99 }
100 }
101}
102
103#[cfg(feature = "unity_engine-resource_management-exceptions-remoteproviderexception")]
104impl<__T: IRemoteProviderException> IRemoteProviderExceptionMethods for __T {}
105
106#[cfg(feature = "unity_engine-resource_management-exceptions-remoteproviderexception")]
107impl RemoteProviderException {
108 pub fn get_web_request_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
110 }
111
112 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
114 }
115}
116
117#[cfg(feature = "unity_engine-resource_management-exceptions-remoteproviderexception")]
118impl RemoteProviderException {
119 #[doc = "Direct (non-virtual) call to `RemoteProviderException`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
120 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
121 let __mi = Self::to_string_method_info();
122 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
123 __inner(this.into(), ::core::option::Option::None)
124 }
125}
126
127#[cfg(feature = "unity_engine-resource_management-exceptions-remoteproviderexception")]
128#[doc(hidden)]
129pub mod prelude {
130 pub use super::{IRemoteProviderException, IRemoteProviderExceptionMethods, RemoteProviderException};
131 #[cfg(feature = "system-object")]
132 pub use crate::system::object::IObjectMethods;
133 #[cfg(feature = "unity_engine-resource_management-exceptions-operationexception")]
134 pub use crate::unity_engine::resource_management::exceptions::operationexception::IOperationExceptionMethods;
135 #[cfg(feature = "unity_engine-resource_management-exceptions-providerexception")]
136 pub use crate::unity_engine::resource_management::exceptions::providerexception::IProviderExceptionMethods;
137 pub use crate::{
138 system::object::IObject,
139 unity_engine::resource_management::exceptions::{operationexception::IOperationException, providerexception::IProviderException},
140 };
141}