[go: up one dir, main page]

wio 0.1.0

Windows IO wrapper
// Copyright © 2015, Peter Atashian
// Licensed under the MIT License <LICENSE.md>
extern crate winapi as w;
extern crate kernel32 as k32;

pub mod apc;
pub mod console;
pub mod handle;
pub mod perf;
pub mod sleep;
pub mod thread;
pub mod wide;

use std::io::{Error};

pub type IoResult<T> = Result<T, Error>;

fn last_error<T>() -> IoResult<T> {
    Err(Error::last_os_error())
}