Type Alias rustix::fs::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);