[][src]Struct rc_zip::Mode

pub struct Mode(pub u32);

Mode represents a file's mode and permission bits. The bits have the same definition on all systems, but not all bits apply to all systems.

It is modelled after Go's os.FileMode.

Methods

impl Mode[src]

pub const DIR: Self[src]

d: is a directory

pub const APPEND: Self[src]

a: append-only

pub const EXCLUSIVE: Self[src]

l: exclusive use

pub const TEMPORARY: Self[src]

T: temporary file; Plan 9 only

L: symbolic link

pub const DEVICE: Self[src]

D: device file

pub const NAMED_PIPE: Self[src]

p: named pipe (FIFO)

pub const SOCKET: Self[src]

S: Unix domain socket

pub const SETUID: Self[src]

u: setuid

pub const SETGID: Self[src]

g: setgid

pub const CHAR_DEVICE: Self[src]

c: Unix character device, when DEVICE is set

pub const STICKY: Self[src]

t: sticky

pub const IRREGULAR: Self[src]

?: non-regular file; nothing else is known

impl Mode[src]

pub fn has(&self, rhs: Self) -> bool[src]

Trait Implementations

impl BitAnd<Mode> for Mode[src]

type Output = Self

The resulting type after applying the & operator.

impl BitAndAssign<Mode> for Mode[src]

impl BitOr<Mode> for Mode[src]

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<Mode> for Mode[src]

impl Clone for Mode[src]

impl Copy for Mode[src]

impl Debug for Mode[src]

impl Display for Mode[src]

impl Eq for Mode[src]

impl From<MsdosMode> for Mode[src]

impl From<UnixMode> for Mode[src]

impl From<u32> for Mode[src]

impl Hash for Mode[src]

impl PartialEq<Mode> for Mode[src]

impl StructuralEq for Mode[src]

impl StructuralPartialEq for Mode[src]

Auto Trait Implementations

impl RefUnwindSafe for Mode

impl Send for Mode

impl Sync for Mode

impl Unpin for Mode

impl UnwindSafe for Mode

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> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

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.