rustix::fs

Type Alias RawMode

Source
pub type RawMode = __kernel_mode_t;
Expand description

mode_t

Trait Implementations§

Source§

impl From<Mode> for RawMode

Source§

fn from(mode: Mode) -> Self

Support conversions from Mode to raw mode values.

use rustix::fs::{Mode, RawMode};
assert_eq!(RawMode::from(Mode::RWXU), 0o700);