pub trait DirBuilderExt {
// Required method
fn mode(&mut self, mode: u32) -> &mut Self;
}
Unix-specific extensions to fs::DirBuilder.
fn mode(&mut self, mode: u32) -> &mut Self
Sets the mode to create new directories with. This option defaults to 0o777.
use std::fs::DirBuilder; use std::os::unix::fs::DirBuilderExt; let mut builder = DirBuilder::new(); builder.mode(0o755);
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
impl DirBuilderExt for DirBuilder
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/os/unix/fs/trait.DirBuilderExt.html