engage/generated/system/io/
drivenotfoundexception.rs1#[cfg(feature = "system-io-drivenotfoundexception-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 io::ioexception::{IIOException, IOException},
10 object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/drivenotfoundexception/DriveNotFoundException.md"))]
14 #[::unity::class(namespace = "System.IO", name = "DriveNotFoundException")]
15 #[parent(crate::system::io::ioexception::IOException)]
16 pub struct DriveNotFoundException {}
17}
18
19#[cfg(feature = "system-io-drivenotfoundexception-types")]
20pub use __types::*;
21
22#[cfg(feature = "system-io-drivenotfoundexception")]
23pub trait IDriveNotFoundExceptionMethods: IDriveNotFoundException {
24 #[doc = "`.ctor()` overload"]
25 fn ctor(self) -> () {
26 unsafe {
27 let __receiver =
28 <DriveNotFoundException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29 ::unity::il2cpp_call!((::unity::module_base()+0x363ff90usize)as*mut u8,();
30(DriveNotFoundException)__receiver)
31 }
32 }
33 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
34 fn ctor_2(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
35 unsafe {
36 let __receiver =
37 <DriveNotFoundException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 ::unity::il2cpp_call!((::unity::module_base()+0x3640010usize)as*mut u8,();
39(DriveNotFoundException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
40 }
41 }
42}
43
44#[cfg(feature = "system-io-drivenotfoundexception")]
45impl<__T: IDriveNotFoundException> IDriveNotFoundExceptionMethods for __T {}
46
47#[cfg(feature = "system-io-drivenotfoundexception")]
48impl DriveNotFoundException {
49 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
50 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
51 }
52
53 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
54 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
55 }
56}
57
58#[cfg(feature = "system-io-drivenotfoundexception")]
59impl DriveNotFoundException {
60 #[doc = "`.ctor()` — no args"]
61 pub fn new() -> Self {
62 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
63 panic!(
64 "{}
65::{}
66 failed to instantiate",
67 ::core::stringify!(DriveNotFoundException),
68 ::core::stringify!(new),
69 )
70 });
71 <Self as IDriveNotFoundExceptionMethods>::ctor(this);
72 this
73 }
74
75 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
76 pub fn new_2(message: ::unity::Il2CppString) -> Self {
77 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
78 panic!(
79 "{}
80::{}
81 failed to instantiate",
82 ::core::stringify!(DriveNotFoundException),
83 ::core::stringify!(new_2),
84 )
85 });
86 <Self as IDriveNotFoundExceptionMethods>::ctor_2(this, message);
87 this
88 }
89}
90
91#[cfg(feature = "system-io-drivenotfoundexception")]
92#[doc(hidden)]
93pub mod prelude {
94 pub use super::{DriveNotFoundException, IDriveNotFoundException, IDriveNotFoundExceptionMethods};
95 #[cfg(feature = "system-io-ioexception")]
96 pub use crate::system::io::ioexception::IIOExceptionMethods;
97 #[cfg(feature = "system-object")]
98 pub use crate::system::object::IObjectMethods;
99 pub use crate::system::{
100 io::ioexception::{IIOException, IOException},
101 object::IObject,
102 };
103}