Trait cvt_trait::WSACvt[][src]

pub trait WSACvt: Sealed {
    fn wsa_cvt(self) -> Result<Self::Output>;
}
Expand description

The trait for Winsock 2 APIs.

Example (Windows-only)

use cvt_trait::prelude::*;
unsafe { WSADoSomething() }.wsa_cvt().expect("Winsock API failed");

Required methods

Converts the “numeric” result returned by the Winsock 2 API to io::Result.

Implementors