Struct std::os::windows::io::OwnedSocket [−][src]
#[repr(transparent)]pub struct OwnedSocket { /* fields omitted */ }
This is supported on Windows only.
Expand description
一个拥有所有权的套接字。
这将丢弃时关闭套接字。
这使用 repr(transparent)
并具有主机套接字的表示形式,因此它可以在 FFI 中将套接字作为消耗参数传递或作为拥有值返回的地方使用,并且它永远不会具有值 INVALID_SOCKET
。