File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
13
13
14
14
- Added ` impl From<Signal> for SigSet ` .
15
15
([ #1959 ] ( https://github.com/nix-rust/nix/pull/1959 ) )
16
+ - Added ` impl std::ops::BitOr for SigSet ` .
17
+ ([ #1959 ] ( https://github.com/nix-rust/nix/pull/1959 ) )
16
18
17
19
### Changed
18
20
Original file line number Diff line number Diff line change @@ -612,6 +612,14 @@ impl From<Signal> for SigSet {
612
612
}
613
613
}
614
614
615
+ impl std:: ops:: BitOr for SigSet {
616
+ type Output = Self ;
617
+
618
+ fn bitor( self , rhs: Self ) -> Self :: Output {
619
+ self . iter( ) . chain( rhs. iter( ) ) . collect( )
620
+ }
621
+ }
622
+
615
623
impl AsRef <libc:: sigset_t> for SigSet {
616
624
fn as_ref( & self ) -> & libc:: sigset_t {
617
625
& self . sigset
You can’t perform that action at this time.
0 commit comments