File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,12 @@ Versioning](https://semver.org/spec/v2.0.0.html).
10
10
11
11
## v0.5.0
12
12
13
- - Fix lsgpio example to output gpio line flags
14
- - Add ` is_empty() ` function for ` Lines ` struct
13
+ - Fix lsgpio example to output gpio line flags.
14
+ - Add ` is_empty() ` function for ` Lines ` struct.
15
+ - Add common trait implementations for public structures.
15
16
- Update Tokio to 1.x. #[ 55] ((https://github.com/rust-embedded/gpio-cdev/pull/55 ).
16
17
- Breaking change of ` LineEventHandle::get_event() ` which now expects ` &mut self ` .
17
- - MSRV is now 1.46.0
18
+ - MSRV is now 1.46.0.
18
19
- Updated ` nix ` to version ` 0.22 ` .
19
20
- Updated ` quicli ` to version ` 0.4 ` .
20
21
- Updated ` bitflags ` to version ` 1.3 ` .
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ mod async_tokio;
107
107
pub mod errors; // pub portion is deprecated
108
108
mod ffi;
109
109
110
- #[ derive( Debug ) ]
110
+ #[ derive( Debug , Clone , Copy , PartialEq ) ]
111
111
pub enum IoctlKind {
112
112
ChipInfo ,
113
113
LineInfo ,
@@ -168,6 +168,8 @@ pub struct Chip {
168
168
inner : Arc < InnerChip > ,
169
169
}
170
170
171
+ /// Iterator over chips
172
+ #[ derive( Debug ) ]
171
173
pub struct ChipIterator {
172
174
readdir : ReadDir ,
173
175
}
@@ -297,6 +299,7 @@ impl Chip {
297
299
}
298
300
299
301
/// Iterator over GPIO Lines for a given chip.
302
+ #[ derive( Debug ) ]
300
303
pub struct LineIterator {
301
304
chip : Arc < InnerChip > ,
302
305
idx : u32 ,
@@ -388,7 +391,7 @@ bitflags! {
388
391
}
389
392
390
393
/// In or Out
391
- #[ derive( Debug , PartialEq ) ]
394
+ #[ derive( Debug , Clone , Copy , PartialEq ) ]
392
395
pub enum LineDirection {
393
396
In ,
394
397
Out ,
@@ -893,7 +896,7 @@ impl AsRawFd for MultiLineHandle {
893
896
/// Maps to kernel [`GPIOEVENT_EVENT_*`] definitions.
894
897
///
895
898
/// [`GPIOEVENT_EVENT_*`]: https://elixir.bootlin.com/linux/v4.9.127/source/include/uapi/linux/gpio.h#L136
896
- #[ derive( Debug , PartialEq ) ]
899
+ #[ derive( Debug , Clone , Copy , PartialEq ) ]
897
900
pub enum EventType {
898
901
RisingEdge ,
899
902
FallingEdge ,
You can’t perform that action at this time.
0 commit comments