Struct cloud_filter::request::Request
source · pub struct Request(/* private fields */);
Expand description
A struct containing various information for the current file operation.
If there is no activity on the placeholder (the methods in the [Placeholder][crate::Placeholder] struct returned by [Request::placeholder][crate::Request::placeholder]) within 60 seconds, the operating system will automatically invalidate the request. To prevent this, read [Request::reset_timeout][crate::Request::reset_timeout].
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.