pub struct RawMode(/* private fields */);Expand description
A Unix permission mode exactly as an archive header records it.
The only consumer is sanitize_permissions, so a raw mode cannot be
passed where a SanitizedMode is expected, and the reverse.
§Examples
use exarch_core::security::RawMode;
assert_eq!(RawMode::new(0o4755).get(), 0o4755);Implementations§
Trait Implementations§
impl Copy for RawMode
impl Eq for RawMode
impl StructuralPartialEq for RawMode
Auto Trait Implementations§
impl Freeze for RawMode
impl RefUnwindSafe for RawMode
impl Send for RawMode
impl Sync for RawMode
impl Unpin for RawMode
impl UnsafeUnpin for RawMode
impl UnwindSafe for RawMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.