pub enum FileAccess {
Read,
Write,
ReadWrite,
}Expand description
What the guest asked for when opening the file. Mirrors
the Win32 GENERIC_READ / GENERIC_WRITE axes — the
virtual filesystem honours the access bits so a
GENERIC_READ-only handle can’t WriteFile.
Variants§
Implementations§
Source§impl FileAccess
impl FileAccess
Sourcepub fn from_win32_desired_access(flags: u32) -> Self
pub fn from_win32_desired_access(flags: u32) -> Self
Map a Win32 dwDesiredAccess bitset to the matching
FileAccess. GENERIC_READ = 0x80000000,
GENERIC_WRITE = 0x40000000.
Trait Implementations§
Source§impl Clone for FileAccess
impl Clone for FileAccess
Source§fn clone(&self) -> FileAccess
fn clone(&self) -> FileAccess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FileAccess
impl Debug for FileAccess
Source§impl PartialEq for FileAccess
impl PartialEq for FileAccess
Source§fn eq(&self, other: &FileAccess) -> bool
fn eq(&self, other: &FileAccess) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FileAccess
impl Eq for FileAccess
impl StructuralPartialEq for FileAccess
Auto Trait Implementations§
impl Freeze for FileAccess
impl RefUnwindSafe for FileAccess
impl Send for FileAccess
impl Sync for FileAccess
impl Unpin for FileAccess
impl UnsafeUnpin for FileAccess
impl UnwindSafe for FileAccess
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