aboutsummaryrefslogtreecommitdiff
path: root/nix-rust/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nix-rust/src/error.rs')
-rw-r--r--nix-rust/src/error.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/nix-rust/src/error.rs b/nix-rust/src/error.rs
new file mode 100644
index 000000000..28d0abdef
--- /dev/null
+++ b/nix-rust/src/error.rs
@@ -0,0 +1,5 @@
+#[derive(Debug)]
+pub enum Error {
+ Misc(String),
+ Foreign(libc::c_void), // == std::exception_ptr
+}