#[repr(i32)]pub enum OperationGuardStrategy {
Fine = 0,
Coarse = 1,
}Expand description
User mode file system locking strategy.
Variants§
Fine = 0
A fine-grained concurrency model where file system NAMESPACE accesses are guarded using an exclusive-shared (read-write) lock.
File I/O is not guarded and concurrent reads/writes/etc. are possible. (Note that the FSD will still apply an exclusive-shared lock PER INDIVIDUAL FILE, but it will not limit I/O operations for different files.)
The fine-grained concurrency model applies the exclusive-shared lock as follows:
- EXCL: SetVolumeLabel, Flush(Volume), Create, Cleanup(Delete), SetInformation(Rename)
- SHRD: GetVolumeInfo, Open, SetInformation(Disposition), ReadDirectory
- NONE: all other operations
Coarse = 1
A coarse-grained concurrency model where all file system accesses are guarded by a mutually exclusive lock.
Trait Implementations§
Source§impl Clone for OperationGuardStrategy
impl Clone for OperationGuardStrategy
Source§fn clone(&self) -> OperationGuardStrategy
fn clone(&self) -> OperationGuardStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationGuardStrategy
impl Debug for OperationGuardStrategy
Source§impl Default for OperationGuardStrategy
impl Default for OperationGuardStrategy
Source§fn default() -> OperationGuardStrategy
fn default() -> OperationGuardStrategy
Returns the “default value” for a type. Read more
impl Copy for OperationGuardStrategy
Auto Trait Implementations§
impl Freeze for OperationGuardStrategy
impl RefUnwindSafe for OperationGuardStrategy
impl Send for OperationGuardStrategy
impl Sync for OperationGuardStrategy
impl Unpin for OperationGuardStrategy
impl UnwindSafe for OperationGuardStrategy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more