Struct file_mode::Special [−][src]
Special bits set on a file.
Implementations
impl Special
[src]
pub fn empty() -> Special
[src]
pub fn from_mode_user(mode: &Mode, user: User) -> Special
[src]
Constructs Special representing User-specific special bits set on the file described by Mode.
- For User::Owner the SpecialBit::SetId bit will represent the
set-user-ID
mode bit. - For User::Group the SpecialBit::SetId bit will represent the
set-group-ID
mode bit.
pub fn is_set_id_set(&self) -> bool
[src]
Returns true if set ID bit is set.
- For User::Owner the bit will represent the
set-user-ID
mode bit. - For User::Group the bit will represent the
set-group-ID
mode bit.
pub fn is_sticky_set(&self) -> bool
[src]
Returns true if sticky bit is set.
pub fn with_set(self, bit: SpecialBit) -> Special
[src]
Returns self with given SpecialBit set.
pub fn with_cleared(self, bit: SpecialBit) -> Special
[src]
Returns self with given SpecialBit cleared.
pub fn with_forgotten(self, bit: SpecialBit) -> Special
[src]
Returns self with given SpecialBit value forgotten.
pub fn set(&mut self, bit: SpecialBit)
[src]
Sets given SpecialBit.
pub fn clear(&mut self, bit: SpecialBit)
[src]
Clears given SpecialBit.
pub fn forget(&mut self, bit: SpecialBit)
[src]
Forgets the value of given SpecialBit.
pub fn for_user(&self, user: User) -> Mode
[src]
Constructs Mode with special bits set according to User.
- For User::Owner the SpecialBit::SetId bit will represent the
set-user-ID
mode bit. - For User::Group the SpecialBit::SetId bit will represent the
set-group-ID
mode bit.
Trait Implementations
impl Clone for Special
[src]
impl Debug for Special
[src]
impl From<SpecialBit> for Special
[src]
fn from(bit: SpecialBit) -> Special
[src]
Auto Trait Implementations
impl RefUnwindSafe for Special
impl Send for Special
impl Sync for Special
impl Unpin for Special
impl UnwindSafe for Special
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,