diff options
author | Jan Bujak <j@exia.io> | 2015-03-07 13:32:12 +0100 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-03-14 20:39:00 -0700 |
commit | e63e6999cdbeeb14b3ecfc92bb4c57d30c517f08 (patch) | |
tree | bcb7d88fb46f54d7034862e71f3258100770a425 /src/sys/socket/mod.rs | |
parent | 8fb70becc379c26ed7a80ca7212bd90995f87208 (diff) | |
download | nix-e63e6999cdbeeb14b3ecfc92bb4c57d30c517f08.zip |
Derive FromPrimitive for SockType.
Diffstat (limited to 'src/sys/socket/mod.rs')
-rw-r--r-- | src/sys/socket/mod.rs | 2 |
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, |