diff --git a/src/runtime/mod.rs b/src/runtime/mod.rs index 2a3984726b3efe32bb18e86d6164fa22d6d616d4..97b6c36ddfb3fcd0a90f670c1292de4198f8aec6 100644 --- a/src/runtime/mod.rs +++ b/src/runtime/mod.rs @@ -1,6 +1,7 @@ mod communication; mod endpoints; pub mod error; +mod ffi; mod logging; mod setup; @@ -202,6 +203,7 @@ pub struct SyncProtoContext<'a> { inbox: &'a HashMap, } //////////////// + pub fn would_block(err: &std::io::Error) -> bool { err.kind() == std::io::ErrorKind::WouldBlock }