1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 05:12:40 +03:00

wezterm-uds: impl AsRawSocket

This commit is contained in:
Wez Furlong 2024-05-13 18:40:50 -07:00
parent 0fcd4a847c
commit 44b61d7e82
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -62,6 +62,12 @@ impl IntoRawSocket for UnixStream {
} }
} }
#[cfg(windows)] #[cfg(windows)]
impl AsRawSocket for UnixStream {
fn as_raw_socket(&self) -> RawSocket {
self.0.as_raw_socket()
}
}
#[cfg(windows)]
impl AsSocket for UnixStream { impl AsSocket for UnixStream {
fn as_socket(&self) -> BorrowedSocket { fn as_socket(&self) -> BorrowedSocket {
self.0.as_socket() self.0.as_socket()