From 64a5c3bc1ee869990f8205374f9dac837a475dbd Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 22 Oct 2013 15:00:37 -0700 Subject: 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 --- src/libstd/rt/io/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libstd/rt/io') 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!() } } -- cgit 1.4.1-3-g733a5