engage/generated/system/io/
monoioerror.rs1#[cfg(feature = "system-io-monoioerror-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/monoioerror/MonoIOError.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct MonoIOError {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for MonoIOError {
21 const NAME: &'static str = "MonoIOError";
22 const NAMESPACE: &'static str = "System.IO";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for MonoIOError {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl MonoIOError {
35 pub fn error_success() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn error_file_not_found() -> Self {
40 Self { value: 2 }
41 }
42
43 pub fn error_path_not_found() -> Self {
44 Self { value: 3 }
45 }
46
47 pub fn error_too_many_open_files() -> Self {
48 Self { value: 4 }
49 }
50
51 pub fn error_access_denied() -> Self {
52 Self { value: 5 }
53 }
54
55 pub fn error_invalid_handle() -> Self {
56 Self { value: 6 }
57 }
58
59 pub fn error_invalid_drive() -> Self {
60 Self { value: 15 }
61 }
62
63 pub fn error_not_same_device() -> Self {
64 Self { value: 17 }
65 }
66
67 pub fn error_no_more_files() -> Self {
68 Self { value: 18 }
69 }
70
71 pub fn error_not_ready() -> Self {
72 Self { value: 21 }
73 }
74
75 pub fn error_write_fault() -> Self {
76 Self { value: 29 }
77 }
78
79 pub fn error_read_fault() -> Self {
80 Self { value: 30 }
81 }
82
83 pub fn error_gen_failure() -> Self {
84 Self { value: 31 }
85 }
86
87 pub fn error_sharing_violation() -> Self {
88 Self { value: 32 }
89 }
90
91 pub fn error_lock_violation() -> Self {
92 Self { value: 33 }
93 }
94
95 pub fn error_handle_disk_full() -> Self {
96 Self { value: 39 }
97 }
98
99 pub fn error_file_exists() -> Self {
100 Self { value: 80 }
101 }
102
103 pub fn error_cannot_make() -> Self {
104 Self { value: 82 }
105 }
106
107 pub fn error_invalid_parameter() -> Self {
108 Self { value: 87 }
109 }
110
111 pub fn error_broken_pipe() -> Self {
112 Self { value: 109 }
113 }
114
115 pub fn error_invalid_name() -> Self {
116 Self { value: 123 }
117 }
118
119 pub fn error_dir_not_empty() -> Self {
120 Self { value: 145 }
121 }
122
123 pub fn error_already_exists() -> Self {
124 Self { value: 183 }
125 }
126
127 pub fn error_filename_exced_range() -> Self {
128 Self { value: 206 }
129 }
130
131 pub fn error_directory() -> Self {
132 Self { value: 267 }
133 }
134
135 pub fn error_encryption_failed() -> Self {
136 Self { value: 6000 }
137 }
138 }
139}
140
141#[cfg(feature = "system-io-monoioerror-types")]
142pub use __types::*;
143
144#[cfg(feature = "system-io-monoioerror")]
145#[doc(hidden)]
146pub mod prelude {
147 pub use super::MonoIOError;
148 #[cfg(feature = "system-object")]
149 pub use crate::system::object::IObjectMethods;
150 #[cfg(feature = "system-enum")]
151 pub use crate::system::r#enum::IEnumMethods;
152 #[cfg(feature = "system-valuetype")]
153 pub use crate::system::valuetype::IValueTypeMethods;
154 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
155}