Crate cvt_trait[][src]

Reimplementation of the private std::sys::cvt(), but as a trait method.

Example

use cvt_trait::prelude::*;
unsafe { os_api() }.cvt().expect("OS API failed");

Modules

prelude

The prelude.

Traits

Cvt

The main trait in this crate.

NtCvt

The trait for NT APIs.

WSACvtDeprecated

Deprecated. Use WsaCvt instead.

WsaCvt

The trait for Winsock 2 APIs.