pub enum ShareMode {
None,
Read,
Write,
Delete,
}Expand description
ShareMode determines how a file can be shared.
These modes are used when creating or opening a file to decide what operations other opening instances of the file can perform on it.
§Variants
-
None: Prevents other processes from opening a file if they request delete, read, or write access. -
Read: Allows subsequent open operations on the same file to request read access. -
Write: Allows subsequent open operations on the same file file to request write access. -
Delete: Allows subsequent open operations on the same file file to request delete access.
Variants§
Auto Trait Implementations§
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