Trait bitflags::__core::os::ext::prelude::PermissionsExt [] [src]

pub trait PermissionsExt {
    fn mode(&self) -> u16;
    fn set_mode(&mut self, mode: u16);
    fn from_mode(mode: u16) -> Self;
}

Unix-specific extensions to Permissions

Required Methods

fn mode(&self) -> u16

Returns the underlying raw mode_t bits that are the standard Unix permissions for this file.

fn set_mode(&mut self, mode: u16)

Sets the underlying raw mode_t bits for this set of permissions.

fn from_mode(mode: u16) -> Self

Creates a new instance of Permissions from the given set of Unix permission bits.

Implementors