pub enum Access {
Execute,
Write,
Read,
}
Expand description
Enum for specifying the type of access in is_allowed
Variants§
Execute
Permission to “execute”, broadly.
For plain files, this does mean permission to execute. For directories, this grants permission to open files within the directory whose name is known.
Write
Permission to write the file.
Read
Permission to read the file, or to read the names of files in a directory.
Trait Implementations§
source§impl PartialEq<Access> for Access
impl PartialEq<Access> for Access
impl Copy for Access
impl Eq for Access
impl StructuralEq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnwindSafe for Access
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