Trait std::os::windows::io::IntoRawSocket 1.4.0[−][src]
pub trait IntoRawSocket {
fn into_raw_socket(self) -> RawSocket;
}
This is supported on Windows only.
Expand description
一个 trait,表示消费一个对象并获得其原始 SOCKET
所有权的能力。
Required methods
fn into_raw_socket(self) -> RawSocket
fn into_raw_socket(self) -> RawSocket
消耗此对象,返回原始底层套接字。
此函数将底层套接字的所有权转让给调用者。 这样,调用者便是套接字的唯一所有者,并且在不再需要套接字时必须将其关闭。