Struct file_mode::Special[][src]

pub struct Special { /* fields omitted */ }

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.

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.

Trait Implementations

impl Clone for Special[src]

impl Debug for Special[src]

impl From<SpecialBit> for 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.