pub struct FileCreateArgs {
pub disposition: CreateDisposition,
pub attributes: FileAttributes,
pub options: CreateOptions,
pub desired_access: FileAccessMask,
}Fields§
§disposition: CreateDisposition§attributes: FileAttributes§options: CreateOptions§desired_access: FileAccessMaskImplementations§
Source§impl FileCreateArgs
impl FileCreateArgs
pub fn make_open_existing(access: FileAccessMask) -> FileCreateArgs
Sourcepub fn make_create_new(
attributes: FileAttributes,
options: CreateOptions,
) -> FileCreateArgs
pub fn make_create_new( attributes: FileAttributes, options: CreateOptions, ) -> FileCreateArgs
Returns arguments for creating a new file, with the default access set to Generic All.
Sourcepub fn make_overwrite(
attributes: FileAttributes,
options: CreateOptions,
) -> FileCreateArgs
pub fn make_overwrite( attributes: FileAttributes, options: CreateOptions, ) -> FileCreateArgs
Returns arguments for creating a new file, with the default access set to Generic All. overwrites existing file, if it exists.
Sourcepub fn make_pipe() -> FileCreateArgs
pub fn make_pipe() -> FileCreateArgs
Returns arguments for opening a duplex pipe (rw).
Trait Implementations§
Source§impl Default for FileCreateArgs
impl Default for FileCreateArgs
Source§fn default() -> FileCreateArgs
fn default() -> FileCreateArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileCreateArgs
impl RefUnwindSafe for FileCreateArgs
impl Send for FileCreateArgs
impl Sync for FileCreateArgs
impl Unpin for FileCreateArgs
impl UnwindSafe for FileCreateArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more