engage/generated/system/io/
ioexception.rs1#[cfg(feature = "system-io-ioexception-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/ioexception/IOException.md"))]
10 #[::unity::class(namespace = "System.IO", name = "IOException")]
11 pub struct IOException {
12 #[offset(136)]
13 #[rename(name = "_maybeFullPath")]
14 pub maybe_full_path: ::unity::Il2CppString,
15 }
16}
17
18#[cfg(feature = "system-io-ioexception-types")]
19pub use __types::*;
20
21#[cfg(feature = "system-io-ioexception")]
22pub trait IIOExceptionMethods: IIOException {
23 #[doc = "`.ctor()` overload"]
24 fn ctor(self) -> () {
25 unsafe {
26 let __receiver = <IOException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
27 ::unity::il2cpp_call!((::unity::module_base()+0x325d700usize)as*mut u8,();
28(IOException)__receiver)
29 }
30 }
31 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
32 fn ctor_2(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
33 unsafe {
34 let __receiver = <IOException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 ::unity::il2cpp_call!((::unity::module_base()+0x325d780usize)as*mut u8,();
36(IOException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
37 }
38 }
39 #[doc = "`.ctor(::unity::Il2CppString, i32)` overload"]
40 fn ctor_3(self, message: impl ::core::convert::Into<::unity::Il2CppString>, hresult: impl ::core::convert::Into<i32>) -> () {
41 unsafe {
42 let __receiver = <IOException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x325d7c0usize)as*mut u8,();
44(IOException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message),(i32)::core::convert::Into::into(hresult))
45 }
46 }
47 #[doc = "`.ctor(::unity::Il2CppString, i32, ::unity::Il2CppString)` overload"]
48 fn ctor_4(
49 self,
50 message: impl ::core::convert::Into<::unity::Il2CppString>,
51 hresult: impl ::core::convert::Into<i32>,
52 maybe_full_path: impl ::core::convert::Into<::unity::Il2CppString>,
53 ) -> () {
54 unsafe {
55 let __receiver = <IOException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x325d800usize)as*mut u8,();
57(IOException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message),(i32)::core::convert::Into::into(hresult),(::unity::Il2CppString)::core::convert::Into::into(maybe_full_path))
58 }
59 }
60}
61
62#[cfg(feature = "system-io-ioexception")]
63impl<__T: IIOException> IIOExceptionMethods for __T {}
64
65#[cfg(feature = "system-io-ioexception")]
66impl IOException {
67 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
69 }
70
71 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
73 }
74
75 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
77 }
78
79 pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
81 }
82}
83
84#[cfg(feature = "system-io-ioexception")]
85impl IOException {
86 #[doc = "`.ctor()` — no args"]
87 pub fn new() -> Self {
88 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
89 panic!(
90 "{}
91::{}
92 failed to instantiate",
93 ::core::stringify!(IOException),
94 ::core::stringify!(new),
95 )
96 });
97 <Self as IIOExceptionMethods>::ctor(this);
98 this
99 }
100
101 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
102 pub fn new_2(message: ::unity::Il2CppString) -> Self {
103 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
104 panic!(
105 "{}
106::{}
107 failed to instantiate",
108 ::core::stringify!(IOException),
109 ::core::stringify!(new_2),
110 )
111 });
112 <Self as IIOExceptionMethods>::ctor_2(this, message);
113 this
114 }
115
116 #[doc = "`.ctor(::unity::Il2CppString, i32)` — overload selector"]
117 pub fn new_3(message: ::unity::Il2CppString, hresult: i32) -> Self {
118 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
119 panic!(
120 "{}
121::{}
122 failed to instantiate",
123 ::core::stringify!(IOException),
124 ::core::stringify!(new_3),
125 )
126 });
127 <Self as IIOExceptionMethods>::ctor_3(this, message, hresult);
128 this
129 }
130
131 #[doc = "`.ctor(::unity::Il2CppString, i32, ::unity::Il2CppString)` — overload selector"]
132 pub fn new_4(message: ::unity::Il2CppString, hresult: i32, maybe_full_path: ::unity::Il2CppString) -> Self {
133 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
134 panic!(
135 "{}
136::{}
137 failed to instantiate",
138 ::core::stringify!(IOException),
139 ::core::stringify!(new_4),
140 )
141 });
142 <Self as IIOExceptionMethods>::ctor_4(this, message, hresult, maybe_full_path);
143 this
144 }
145}
146
147#[cfg(feature = "system-io-ioexception")]
148#[doc(hidden)]
149pub mod prelude {
150 pub use super::{IIOException, IIOExceptionMethods, IOException};
151}