summaryrefslogtreecommitdiff
path: root/src/sys/socket/mod.rs
diff options
context:
space:
mode:
authorJan Bujak <j@exia.io>2015-03-07 13:32:12 +0100
committerCarl Lerche <me@carllerche.com>2015-03-14 20:39:00 -0700
commite63e6999cdbeeb14b3ecfc92bb4c57d30c517f08 (patch)
treebcb7d88fb46f54d7034862e71f3258100770a425 /src/sys/socket/mod.rs
parent8fb70becc379c26ed7a80ca7212bd90995f87208 (diff)
downloadnix-e63e6999cdbeeb14b3ecfc92bb4c57d30c517f08.zip
Derive FromPrimitive for SockType.
Diffstat (limited to 'src/sys/socket/mod.rs')
-rw-r--r--src/sys/socket/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs
index 0480a020..80dfdd8d 100644
--- a/src/sys/socket/mod.rs
+++ b/src/sys/socket/mod.rs
@@ -47,7 +47,7 @@ pub use self::multicast::{
};
pub use self::consts::*;
-#[derive(Copy, PartialEq, Eq, Debug)]
+#[derive(Copy, PartialEq, Eq, Debug, FromPrimitive)]
#[repr(i32)]
pub enum SockType {
Stream = consts::SOCK_STREAM,