#[repr(C)]
pub struct DOKAN_OPTIONS { pub Version: USHORT, pub SingleThread: BOOLEAN, pub Options: ULONG, pub GlobalContext: ULONG64, pub MountPoint: LPCWSTR, pub UNCName: LPCWSTR, pub Timeout: ULONG, pub AllocationUnitSize: ULONG, pub SectorSize: ULONG, pub VolumeSecurityDescriptorLength: ULONG, pub VolumeSecurityDescriptor: [CHAR; 16384], }
Expand description

Dokan mount options used to describe Dokan device behavior.

Fields§

§Version: USHORT

Version of the Dokan features requested without dots (version “123” is equal to Dokan version 1.2.3).

§SingleThread: BOOLEAN

Only use a single thread to process events. This is highly not recommended as can easily create a bottleneck.

§Options: ULONG

Features enabled for the mount.

§GlobalContext: ULONG64

FileSystem can store anything here.

§MountPoint: LPCWSTR

Mount point. It can be a driver letter like “M:" or a folder path “C:\mount\dokan” on a NTFS partition.

§UNCName: LPCWSTR

UNC Name for the Network Redirector see Support for UNC Naming

§Timeout: ULONG

Max timeout in milliseconds of each request before Dokan gives up to wait events to complete. A timeout request is a sign that the userland implementation is no longer able to properly manage requests in time. The driver will therefore unmount the device when a timeout trigger in order to keep the system stable. The default timeout value is 15 seconds.

§AllocationUnitSize: ULONG

Allocation Unit Size of the volume. This will affect the file size.

§SectorSize: ULONG

Sector Size of the volume. This will affect the file size.

§VolumeSecurityDescriptorLength: ULONG

Length of the optional VolumeSecurityDescriptor provided. Set 0 will disable the option.

§VolumeSecurityDescriptor: [CHAR; 16384]

Optional Volume Security descriptor.

See InitializeSecurityDescriptor

Implementations§

source§

impl DOKAN_OPTIONS

source

pub fn new() -> Self

Make an empty DOKAN_OPTIONS.

Trait Implementations§

source§

impl Debug for DOKAN_OPTIONS

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for DOKAN_OPTIONS

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl PartialEq<DOKAN_OPTIONS> for DOKAN_OPTIONS

source§

fn eq(&self, other: &DOKAN_OPTIONS) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for DOKAN_OPTIONS

source§

impl StructuralEq for DOKAN_OPTIONS

source§

impl StructuralPartialEq for DOKAN_OPTIONS

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.