Struct Request

Source
pub struct Request(/* private fields */);
Expand description

A struct containing standard information for the current file operation.

Implementations§

Source§

impl Request

Source

pub fn volume_guid_path(&self) -> OsString

The GUID path of the current volume.

The returned value comes in the form \?\Volume{GUID}.

Source

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.

Source

pub fn volume_serial_number(&self) -> u32

The serial number of the current volume.

Source

pub fn process(&self) -> Process

Information of the user process that triggered the callback.

Source

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.

Source

pub fn file_id(&self) -> i64

The NTFS file ID of the placeholder file/directory.

Source

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.

Source

pub fn path(&self) -> PathBuf

The absolute path of the placeholder file/directory starting from the root directory of the volume.

Read here for more information on this function.

Source

pub fn priority_hint(&self) -> u8

A numeric scale ranging from 0-15 to describe the priority of the file operation.

Currently, this value does not change.

Source

pub fn file_blob(&self) -> &[u8]

The byte slice assigned to the current placeholder file/directory.

Source

pub fn register_blob(&self) -> &[u8]

The byte slice assigned to the current sync root on registration.

Trait Implementations§

Source§

impl Debug for Request

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.