diff --git a/src/sys/unix/pipe.rs b/src/sys/unix/pipe.rs index 986bd3ffc..b15cd5132 100644 --- a/src/sys/unix/pipe.rs +++ b/src/sys/unix/pipe.rs @@ -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.