]> git.lizzy.rs Git - rust.git/blob - src/libstd/sys/windows/ext/mod.rs
Implement reading and writing atomically at certain offsets
[rust.git] / src / libstd / sys / windows / ext / mod.rs
1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 //! Experimental extensions to `std` for Windows.
12 //!
13 //! For now, this module is limited to extracting handles, file
14 //! descriptors, and sockets, but its functionality will grow over
15 //! time.
16
17 #![stable(feature = "rust1", since = "1.0.0")]
18
19 pub mod ffi;
20 pub mod fs;
21 pub mod io;
22 pub mod raw;
23 pub mod process;
24 pub mod thread;
25
26 /// A prelude for conveniently writing platform-specific code.
27 ///
28 /// Includes all extension traits, and some important type definitions.
29 #[stable(feature = "rust1", since = "1.0.0")]
30 pub mod prelude {
31     #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
32     pub use super::io::{RawSocket, RawHandle, AsRawSocket, AsRawHandle};
33     #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
34     pub use super::io::{FromRawSocket, FromRawHandle, IntoRawSocket, IntoRawHandle};
35     #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
36     pub use super::ffi::{OsStrExt, OsStringExt};
37     #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
38     pub use super::fs::{OpenOptionsExt, MetadataExt};
39     #[doc(no_inline)] #[unstable(feature = "file_offset", issue = "35918")]
40     pub use super::fs::FileExt;
41 }