Skip to content

Commit

Permalink
Implement AsFd for Unix pipe Sender
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Jun 14, 2024
1 parent a1997d5 commit 0c44007
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sys/unix/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,12 @@ impl IntoRawFd for Sender {
}
}

impl AsFd for Sender {
fn as_fd(&self) -> BorrowedFd<'_> {
self.inner.as_fd()
}
}

/// Receiving end of an Unix pipe.
///
/// See [`new`] for documentation, including examples.
Expand Down

0 comments on commit 0c44007

Please sign in to comment.