Skip to content

Commit 202d182

Browse files
feat: impl std::ops::BitOr for SigSet
1 parent 9656f55 commit 202d182

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/sys/signal.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,14 @@ impl From<Signal> for SigSet {
593593
}
594594
}
595595

596+
impl std::ops::BitOr for SigSet {
597+
type Output = Self;
598+
599+
fn bitor(self, rhs: Self) -> Self::Output {
600+
self.iter().chain(rhs.iter()).collect()
601+
}
602+
}
603+
596604
impl AsRef<libc::sigset_t> for SigSet {
597605
fn as_ref(&self) -> &libc::sigset_t {
598606
&self.sigset

0 commit comments

Comments
 (0)