ExecExt

Trait ExecExt 

Source
pub trait ExecExt {
    // Required methods
    fn setuid(self, uid: u32) -> Self;
    fn setgid(self, gid: u32) -> Self;
}
Expand description

Trait allowing for custom implementations of setuid and setgid behaviors on Unix which handle file system permissions (owner or group respectively).

Required Methods§

Source

fn setuid(self, uid: u32) -> Self

sets the access right flag, similar to unix setuid

Source

fn setgid(self, gid: u32) -> Self

sets the access right flag, similar to unix setgid

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§