1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-22 21:01:36 +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)]
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()