Skip to content

Commit 0c44007

Browse files
committed
Implement AsFd for Unix pipe Sender
1 parent a1997d5 commit 0c44007

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sys/unix/pipe.rs

+6
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,12 @@ impl IntoRawFd for Sender {
397397
}
398398
}
399399

400+
impl AsFd for Sender {
401+
fn as_fd(&self) -> BorrowedFd<'_> {
402+
self.inner.as_fd()
403+
}
404+
}
405+
400406
/// Receiving end of an Unix pipe.
401407
///
402408
/// See [`new`] for documentation, including examples.

0 commit comments

Comments
 (0)