pub enum ProtectionBit {
Read,
Write,
Execute,
Search,
}
Expand description
Protection bit that can be set for a User.
Variants§
Read
Permission to read.
Write
Permission to write.
Execute
Permission to execute.
Search
Permission to search a directory - like execute but only applies to directories.
Trait Implementations§
Source§impl Clone for ProtectionBit
impl Clone for ProtectionBit
Source§fn clone(&self) -> ProtectionBit
fn clone(&self) -> ProtectionBit
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 ProtectionBit
impl Debug for ProtectionBit
Source§impl From<ProtectionBit> for Protection
impl From<ProtectionBit> for Protection
Source§fn from(bit: ProtectionBit) -> Protection
fn from(bit: ProtectionBit) -> Protection
Converts to this type from the input type.
Source§impl Hash for ProtectionBit
impl Hash for ProtectionBit
Source§impl PartialEq for ProtectionBit
impl PartialEq for ProtectionBit
impl Copy for ProtectionBit
impl Eq for ProtectionBit
impl StructuralPartialEq for ProtectionBit
Auto Trait Implementations§
impl Freeze for ProtectionBit
impl RefUnwindSafe for ProtectionBit
impl Send for ProtectionBit
impl Sync for ProtectionBit
impl Unpin for ProtectionBit
impl UnwindSafe for ProtectionBit
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