pub struct MOVEFILE(/* private fields */);
kernel
only.Expand description
MoveFileEx
flags
(u32
).
Implementations§
Source§impl MOVEFILE
impl MOVEFILE
Sourcepub const unsafe fn as_mut(&mut self) -> &mut u32
pub const unsafe fn as_mut(&mut self) -> &mut u32
Returns a mutable reference to the underlying raw value.
§Safety
Be sure the integer being set is meaningful for the actual type.
Sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
Sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
Source§impl MOVEFILE
impl MOVEFILE
Sourcepub const COPY_ALLOWED: Self
pub const COPY_ALLOWED: Self
If the file is being moved to a different filesystem, the function will be allowed to simulate the move by copying the file and deleting it.
The function succeeds even if the source file cannot be deleted after it has been moved.
Cannot be combined with DELAY_UNTIL_REBOOT
.
Sourcepub const DELAY_UNTIL_REBOOT: Self
pub const DELAY_UNTIL_REBOOT: Self
Delays moving the file until the next reboot, just after checking the consistency of the root volumes, before user programs are run.
This flag can only be used if the process is running with elevated privileges.
Cannot be combined with COPY_ALLOWED
.
Sourcepub const FAIL_IF_NOT_TRACKABLE: Self
pub const FAIL_IF_NOT_TRACKABLE: Self
Makes the function fail if the source file is a link source and the file cannot be tracked after the move. This can occur if the destination is a FAT volume.
Sourcepub const REPLACE_EXISTING: Self
pub const REPLACE_EXISTING: Self
If the new file name exists, the function replaces its contents with the contents of the source file. Cannot be used when the source file is an existing directory.
Sourcepub const WRITE_THROUGH: Self
pub const WRITE_THROUGH: Self
Waits until the file is actually moved on the disk before returning.
Has no effect if DELAY_UNTIL_REBOOT
is set.