Type Alias rustix::fs::RawMode

source ·
pub type RawMode = __kernel_mode_t;
Available on crate feature fs only.
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);

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 4 bytes