Trait cap_std::fs::PermissionsExt

source ·
pub trait PermissionsExt {
    // Required methods
    fn mode(&self) -> u32;
    fn set_mode(&mut self, mode: u32);
    fn from_mode(mode: u32) -> Self;
}
Available on Unix only.
Expand description

Unix-specific extensions to Permissions.

Required Methods§

source

fn mode(&self) -> u32

Returns the underlying raw st_mode bits that contain the standard Unix permissions for this file.

source

fn set_mode(&mut self, mode: u32)

Sets the underlying raw bits for this set of permissions.

source

fn from_mode(mode: u32) -> Self

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

Object Safety§

This trait is not object safe.

Implementors§