File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -400,6 +400,11 @@ pub enum ErrorKind {
400
400
#[ stable( feature = "out_of_memory_error" , since = "1.54.0" ) ]
401
401
OutOfMemory ,
402
402
403
+ /// The operation was partially successful and needs to be checked
404
+ /// later on due to not blocking.
405
+ #[ unstable( feature = "io_error_inprogress" , issue = "none" ) ]
406
+ InProgress ,
407
+
403
408
// "Unusual" error kinds which do not correspond simply to (sets
404
409
// of) OS error codes, should be added just above this comment.
405
410
// `Other` and `Uncategorized` should remain at the end:
@@ -449,6 +454,7 @@ impl ErrorKind {
449
454
FilesystemQuotaExceeded => "filesystem quota exceeded" ,
450
455
HostUnreachable => "host unreachable" ,
451
456
Interrupted => "operation interrupted" ,
457
+ InProgress => "in progress" ,
452
458
InvalidData => "invalid data" ,
453
459
InvalidFilename => "invalid filename" ,
454
460
InvalidInput => "invalid input parameter" ,
Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ fn kind_from_prim(ek: u32) -> Option<ErrorKind> {
348
348
UnexpectedEof ,
349
349
Unsupported ,
350
350
OutOfMemory ,
351
+ InProgress ,
351
352
Uncategorized ,
352
353
} )
353
354
}
Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
279
279
libc:: ETIMEDOUT => TimedOut ,
280
280
libc:: ETXTBSY => ExecutableFileBusy ,
281
281
libc:: EXDEV => CrossesDevices ,
282
+ libc:: EINPROGRESS => InProgress ,
282
283
283
284
libc:: EACCES | libc:: EPERM => PermissionDenied ,
284
285
You can’t perform that action at this time.
0 commit comments