We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcd696d commit 425202cCopy full SHA for 425202c
library/std/src/io/error.rs
@@ -186,6 +186,11 @@ pub enum ErrorKind {
186
/// This means that the operation can never succeed.
187
#[stable(feature = "unsupported_error", since = "1.53.0")]
188
Unsupported,
189
+
190
+ /// An operation could not be completed, because it failed
191
+ /// to allocate enough memory.
192
+ #[stable(feature = "out_of_memory_error", since = "1.53.0")]
193
+ OutOfMemory,
194
}
195
196
impl ErrorKind {
@@ -210,6 +215,7 @@ impl ErrorKind {
210
215
ErrorKind::Other => "other os error",
211
216
ErrorKind::UnexpectedEof => "unexpected end of file",
212
217
ErrorKind::Unsupported => "unsupported",
218
+ ErrorKind::OutOfMemory => "out of memory",
213
219
214
220
221
0 commit comments