pub struct PermBits { /* private fields */ }Expand description
See perm_bits.
Implementations§
Source§impl PermBits
impl PermBits
Sourcepub fn has(self, bits: u32) -> Self
pub fn has(self, bits: u32) -> Self
Every one of these permission bits must be set (such as 0o100, owner execute).
Sourcepub fn lacks(self, bits: u32) -> Self
pub fn lacks(self, bits: u32) -> Self
None of these permission bits may be set (such as 0o222, all write bits).
Sourcepub fn message(self, message: impl Into<String>) -> Self
pub fn message(self, message: impl Into<String>) -> Self
Shown when the bits are wrong, instead of messages::PERMISSION_WRONG.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PermBits
impl RefUnwindSafe for PermBits
impl Send for PermBits
impl Sync for PermBits
impl Unpin for PermBits
impl UnsafeUnpin for PermBits
impl UnwindSafe for PermBits
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