cap_std::fs_utf8

Trait 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 crate feature fs_utf8 and 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§