pub enum FileAccess {
Read,
Write,
Execute,
FullControl,
Custom(AccessMask),
}Expand description
File access rights wrapper.
Variants§
Read
Read data/list directory.
Write
Write data/add file.
Execute
Execute/traverse.
FullControl
Read + write + execute + standard rights.
Custom(AccessMask)
Custom raw mask.
Implementations§
Source§impl FileAccess
impl FileAccess
Sourcepub fn to_mask(self) -> AccessMask
pub fn to_mask(self) -> AccessMask
Convert to generic access mask.
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 · 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
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