Struct dokan::OperationInfo [−][src]
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]
T::Context: Debug,
Auto Trait Implementations
impl<'a, 'b, T> RefUnwindSafe for OperationInfo<'a, 'b, T> where
T: RefUnwindSafe,
<T as FileSystemHandler<'a, 'b>>::Context: RefUnwindSafe,
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,
T: RefUnwindSafe,
<T as FileSystemHandler<'a, 'b>>::Context: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,