changeset 10:32cf15e42de1

Implement Status type
author Lewin Bormann <lbo@spheniscida.de>
date Fri, 10 Jun 2016 19:11:17 +0200
parents 36b6f95ad57e
children e68172b81e2b
files src/types.rs
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/types.rs	Fri Jun 10 19:11:08 2016 +0200
+++ b/src/types.rs	Fri Jun 10 19:11:17 2016 +0200
@@ -5,3 +5,12 @@
 }
 
 pub type SequenceNumber = u64;
+
+pub enum Status {
+    OK,
+    NotFound(String),
+    Corruption(String),
+    NotSupported(String),
+    InvalidArgument(String),
+    IOError(String),
+}