pub struct Request(/* private fields */);
Expand description
A struct containing standard information for the current file operation.
Implementations§
Source§impl Request
impl Request
Sourcepub fn volume_guid_path(&self) -> OsString
pub fn volume_guid_path(&self) -> OsString
The GUID path of the current volume.
The returned value comes in the form \?\Volume{GUID}
.
Sourcepub fn volume_letter(&self) -> OsString
pub fn volume_letter(&self) -> OsString
The letter of the current volume.
The returned value comes in the form X:
, where X
is the drive letter.
Sourcepub fn volume_serial_number(&self) -> u32
pub fn volume_serial_number(&self) -> u32
The serial number of the current volume.
Sourcepub fn sync_root_file_id(&self) -> i64
pub fn sync_root_file_id(&self) -> i64
The NTFS file ID of the sync root folder under which the placeholder being operated on resides.
Sourcepub fn file_size(&self) -> u64
pub fn file_size(&self) -> u64
The logical size of the placeholder file.
If the placeholder is a directory, this value will always equal 0.
Sourcepub fn path(&self) -> PathBuf
pub fn path(&self) -> PathBuf
The absolute path of the placeholder file/directory starting from the root directory of the volume.
Sourcepub fn priority_hint(&self) -> u8
pub fn priority_hint(&self) -> u8
A numeric scale ranging from 0-15 to describe the priority of the file operation.
Sourcepub fn file_blob(&self) -> &[u8] ⓘ
pub fn file_blob(&self) -> &[u8] ⓘ
The byte slice assigned to the current placeholder file/directory.
Sourcepub fn register_blob(&self) -> &[u8] ⓘ
pub fn register_blob(&self) -> &[u8] ⓘ
The byte slice assigned to the current sync root on registration.