File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
17
17
([ #1959 ] ( https://github.com/nix-rust/nix/pull/1959 ) )
18
18
- Added ` impl std::ops::BitOr for SigSet ` .
19
19
([ #1959 ] ( https://github.com/nix-rust/nix/pull/1959 ) )
20
+ - Added ` impl std::ops::BitOr for Signal ` .
21
+ ([ #1959 ] ( https://github.com/nix-rust/nix/pull/1959 ) )
20
22
21
23
### Changed
22
24
Original file line number Diff line number Diff line change @@ -593,6 +593,19 @@ impl From<Signal> for SigSet {
593
593
}
594
594
}
595
595
596
+
597
+ impl std:: ops:: BitOr for Signal {
598
+ type Output = SigSet ;
599
+
600
+ // rhs is the "right-hand side" of the expression `a | b`
601
+ fn bitor( self , rhs: Self ) -> Self :: Output {
602
+ let mut sigset = SigSet :: empty( ) ;
603
+ sigset. add( self ) ;
604
+ sigset. add( rhs) ;
605
+ sigset
606
+ }
607
+ }
608
+
596
609
impl std:: ops:: BitOr for SigSet {
597
610
type Output = Self ;
598
611
You can’t perform that action at this time.
0 commit comments