aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorFlaise <[email protected]>2019-08-02 16:06:04 -0500
committerMatthew Collins <[email protected]>2019-08-03 09:08:03 +0100
commitf36084df856b0fc3933afe3a9f376c9ccc11a98c (patch)
tree25994cdb5a83e7e120b7e10daf11dbc2f17a1888 /src/error.rs
parentFixed build script on Linux (diff)
downloadarchived-steamworks-rs-f36084df856b0fc3933afe3a9f376c9ccc11a98c.tar.xz
archived-steamworks-rs-f36084df856b0fc3933afe3a9f376c9ccc11a98c.zip
Implemented Serialize, Deserialize and other common traits where appropriate
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index 9d687e8..10e187d 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,10 +1,11 @@
+use serde::{Serialize, Deserialize};
use crate::sys;
/// Covers errors that can be returned by the steamworks API
///
/// Documentation is based on official documentation which doesn't
/// always explain when an error could be returned or its meaning.
-#[derive(Debug, Fail)]
+#[derive(Debug, Fail, Serialize, Deserialize, PartialEq, Eq)]
pub enum SteamError {
/// Returned if the steamworks API fails to initialize.
#[fail(display = "failed to init the steamworks API")]
@@ -494,4 +495,4 @@ impl From<sys::EResult> for SteamError {
_ => unreachable!(),
}
}
-} \ No newline at end of file
+}