File tree 3 files changed +5
-0
lines changed
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,7 @@ pub enum IoErrorKind {
367
367
Closed ,
368
368
ConnectionRefused ,
369
369
ConnectionReset ,
370
+ NotConnected ,
370
371
BrokenPipe ,
371
372
PathAlreadyExists ,
372
373
PathDoesntExist ,
@@ -386,6 +387,7 @@ impl ToStr for IoErrorKind {
386
387
Closed => ~"Closed ",
387
388
ConnectionRefused => ~"ConnectionRefused ",
388
389
ConnectionReset => ~"ConnectionReset ",
390
+ NotConnected => ~"NotConnected ",
389
391
BrokenPipe => ~"BrokenPipe ",
390
392
PathAlreadyExists => ~"PathAlreadyExists ",
391
393
PathDoesntExist => ~"PathDoesntExist ",
Original file line number Diff line number Diff line change @@ -267,6 +267,7 @@ pub fn uv_error_to_io_error(uverr: UvError) -> IoError {
267
267
EACCES => PermissionDenied,
268
268
ECONNREFUSED => ConnectionRefused,
269
269
ECONNRESET => ConnectionReset,
270
+ ENOTCONN => NotConnected,
270
271
EPIPE => BrokenPipe,
271
272
err => {
272
273
rtdebug!(" uverr. code { } ", err as int);
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ pub mod errors {
53
53
pub static EACCES : c_int = -4093 ;
54
54
pub static ECONNREFUSED : c_int = -4079 ;
55
55
pub static ECONNRESET : c_int = -4078 ;
56
+ pub static ENOTCONN : c_int = -4054 ;
56
57
pub static EPIPE : c_int = -4048 ;
57
58
}
58
59
#[ cfg( not( windows) ) ]
@@ -63,6 +64,7 @@ pub mod errors {
63
64
pub static EACCES : c_int = -libc:: EACCES ;
64
65
pub static ECONNREFUSED : c_int = -libc:: ECONNREFUSED ;
65
66
pub static ECONNRESET : c_int = -libc:: ECONNRESET ;
67
+ pub static ENOTCONN : c_int = -libc:: ENOTCONN ;
66
68
pub static EPIPE : c_int = -libc:: EPIPE ;
67
69
}
68
70
You can’t perform that action at this time.
0 commit comments