pub fn cvt<T: IsMinusOne>(t: T) -> Result<T>🔬This is a nightly-only experimental API. (
windows_net)Expand description
Checks if the signed integer is the Windows constant SOCKET_ERROR (-1)
and if so, returns the last error from the Windows socket interface. This
function must be called before another call to the socket API is made.