Skip to content

Commit

Permalink
wezterm-uds: impl AsRawSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed May 14, 2024
1 parent 0fcd4a8 commit 44b61d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wezterm-uds/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ impl IntoRawSocket for UnixStream {
}
}
#[cfg(windows)]
impl AsRawSocket for UnixStream {
fn as_raw_socket(&self) -> RawSocket {
self.0.as_raw_socket()
}
}
#[cfg(windows)]
impl AsSocket for UnixStream {
fn as_socket(&self) -> BorrowedSocket {
self.0.as_socket()
Expand Down

0 comments on commit 44b61d7

Please sign in to comment.