doc.rust-lang.org
pub const unsafe fn borrow_raw(handle: RawHandle) -> Self
Returns a BorrowedHandle holding the given raw handle.
associated_function
std
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct BorrowedHandle<'handle>
A borrowed handle.
struct
std
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
fn as_handle(&self) -> BorrowedHandle<'_>
Borrows the handle.
method
std
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait AsHandle
A trait to borrow the handle from an underlying object.
trait
std
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod io
Windows-specific extensions to general I/O primitives.
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn symlink_file<P, Q>(original: P, link: Q) -> io::Result<()>
Creates a new symlink to a non-directory file on the filesystem.
function
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn symlink_dir<P, Q>(original: P, link: Q) -> io::Result<()>
Creates a new symlink to a directory on the filesystem.
function
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn share_mode(&mut self, val: u32) -> &mut Self
Overrides the dwShareMode argument to the call to CreateFile with the specified value.
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
fn security_qos_flags(&mut self, flags: u32) -> &mut Self
Sets the dwSecurityQosFlags argument to the call to CreateFile2 to the specified value (or combines it with custom_flags and attributes to set the dwFlagsAndAttributes for CreateFile).
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
fn custom_flags(&mut self, flags: u32) -> &mut Self
Sets extra flags for the dwFileFlags argument to the call to CreateFile2 to the specified value (or combines it with attributes and security_qos_flags to set the dwFlagsAndAttributes for CreateFile).
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
fn attributes(&mut self, val: u32) -> &mut Self
Sets the dwFileAttributes argument to the call to CreateFile2 to the specified value (or combines it with custom_flags and security_qos_flags to set the dwFlagsAndAttributes for CreateFile).
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
fn access_mode(&mut self, access: u32) -> &mut Self
Overrides the dwDesiredAccess argument to the call to CreateFile with the specified value.
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait OpenOptionsExt
Windows-specific extensions to fs::OpenOptions.
trait
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
fn last_write_time(&self) -> u64
Returns the value of the ftLastWriteTime field of this metadata.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn last_access_time(&self) -> u64
Returns the value of the ftLastAccessTime field of this metadata.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn file_size(&self) -> u64
Returns the value of the nFileSize fields of this metadata.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn file_attributes(&self) -> u32
Returns the value of the dwFileAttributes field of this metadata.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn creation_time(&self) -> u64
Returns the value of the ftCreationTime field of this metadata.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait MetadataExt
Windows-specific extensions to fs::Metadata.
trait
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn is_symlink_file(&self) -> bool
Returns true if this file type is a symbolic link that is also a file.
method
std
Stable since 1.64.0
Version 1.100.0-nightly