diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-17 14:47:31 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-17 14:47:31 +0100 |
commit | 6d454af22b9058765677e0190ebb8f57176a671a (patch) | |
tree | 600b670bb8564adc217eabdb3ee987a3193e8eab | |
parent | 04d8362113e3dc382a8a063ffa652bee6345fa61 (diff) | |
download | ads1x1x-async-6d454af22b9058765677e0190ebb8f57176a671a.tar.gz ads1x1x-async-6d454af22b9058765677e0190ebb8f57176a671a.tar.xz ads1x1x-async-6d454af22b9058765677e0190ebb8f57176a671a.zip |
Make types copyable
-rw-r--r-- | src/channels.rs | 1 | ||||
-rw-r--r-- | src/devices/mod.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/channels.rs b/src/channels.rs index 5b0d4d4..f88e10e 100644 --- a/src/channels.rs +++ b/src/channels.rs @@ -22,6 +22,7 @@ pub mod channel { pub struct DifferentialA2A3; } +#[derive(Debug, Clone, Copy)] pub enum ChannelSelection { SingleA0, SingleA1, diff --git a/src/devices/mod.rs b/src/devices/mod.rs index 95d8907..9db7b79 100644 --- a/src/devices/mod.rs +++ b/src/devices/mod.rs @@ -1,5 +1,6 @@ //! Functions for all devices +#[derive(Debug, Clone, Copy)] enum OperatingMode { OneShot, Continuous |