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 9, 2024
1 parent 5200f6c commit e137878
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 @@ -395,6 +395,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 e137878

Please sign in to comment.