diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-22 15:00:37 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-24 23:49:11 -0700 |
| commit | 64a5c3bc1ee869990f8205374f9dac837a475dbd (patch) | |
| tree | e791509c56fd43d8a5055e4d9ca163897ed4c4b5 /src/libstd/rt/io | |
| parent | 3ee5ef12fb71be95d6e7f679900a497a2580d25e (diff) | |
| download | rust-64a5c3bc1ee869990f8205374f9dac837a475dbd.tar.gz rust-64a5c3bc1ee869990f8205374f9dac837a475dbd.zip | |
Implement a basic event loop built on LittleLock
It's not guaranteed that there will always be an event loop to run, and this implementation will serve as an incredibly basic one which does not provide any I/O, but allows the scheduler to still run. cc #9128
Diffstat (limited to 'src/libstd/rt/io')
| -rw-r--r-- | src/libstd/rt/io/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstd/rt/io/mod.rs b/src/libstd/rt/io/mod.rs index 758c9779165..decf801d592 100644 --- a/src/libstd/rt/io/mod.rs +++ b/src/libstd/rt/io/mod.rs @@ -606,6 +606,13 @@ pub fn standard_error(kind: IoErrorKind) -> IoError { detail: None } } + IoUnavailable => { + IoError { + kind: IoUnavailable, + desc: "I/O is unavailable", + detail: None + } + } _ => fail!() } } |
