Struct dokan::OperationInfo[][src]

pub struct OperationInfo<'a, 'b: 'a, T: FileSystemHandler<'a, 'b> + 'b> { /* fields omitted */ }

Information about the current operation.

Implementations

impl<'a, 'b: 'a, 'c: 'b, T: FileSystemHandler<'b, 'c> + 'c> OperationInfo<'b, 'c, T>[src]

pub fn pid(&self) -> u32[src]

Gets process ID of the calling process.

pub fn is_dir(&self) -> bool[src]

Gets whether the target file is a directory.

pub fn delete_on_close(&self) -> bool[src]

Gets whether the file should be deleted when it is closed.

pub fn paging_io(&self) -> bool[src]

Gets whether it is a paging I/O operation.

pub fn synchronous_io(&self) -> bool[src]

Gets whether it is a synchronous I/O operation.

pub fn no_cache(&self) -> bool[src]

Gets whether it is a non-cached I/O operation.

pub fn write_to_eof(&self) -> bool[src]

Gets whether the current write operation should write to end of file instead of the position specified by the offset argument.

pub fn thread_count(&self) -> u16[src]

Gets the number of threads used to handle file system operations.

pub fn mount_flags(&self) -> MountFlags[src]

Gets flags that controls behavior of the mounted volume.

pub fn mount_point(&self) -> Option<&U16CStr>[src]

Gets mount point path.

pub fn unc_name(&self) -> Option<&U16CStr>[src]

Gets UNC name of the network drive.

pub fn timeout(&self) -> Duration[src]

Gets the time that Dokan will wait for an operation to complete.

See Drive::timeout for more information.

pub fn allocation_unit_size(&self) -> u32[src]

Gets allocation unit size of the volume.

pub fn sector_size(&self) -> u32[src]

Gets sector size of the volume.

#[must_use]pub fn reset_timeout(&self, timeout: Duration) -> bool[src]

Temporarily extend the timeout of the current operation.

Returns true on success.

pub fn requester_token(&self) -> Option<TokenHandle>[src]

Gets the access token associated with the calling process.

Returns None on error.

Trait Implementations

impl<'a, 'b: 'a, T: Debug + FileSystemHandler<'a, 'b> + 'b> Debug for OperationInfo<'a, 'b, T> where
    T::Context: Debug
[src]

Auto Trait Implementations

impl<'a, 'b, T> RefUnwindSafe for OperationInfo<'a, 'b, T> where
    T: RefUnwindSafe,
    <T as FileSystemHandler<'a, 'b>>::Context: RefUnwindSafe

impl<'a, 'b, T> !Send for OperationInfo<'a, 'b, T>

impl<'a, 'b, T> !Sync for OperationInfo<'a, 'b, T>

impl<'a, 'b, T> Unpin for OperationInfo<'a, 'b, T>

impl<'a, 'b, T> UnwindSafe for OperationInfo<'a, 'b, T> where
    T: RefUnwindSafe,
    <T as FileSystemHandler<'a, 'b>>::Context: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.