Trait async_std::os::unix::fs::DirBuilderExt

1.6.0 · source ·
pub trait DirBuilderExt {
    // Required method
    fn mode(&mut self, mode: u32) -> &mut Self;
}
Expand description

Unix-specific extensions to fs::DirBuilder.

Required Methods§

1.6.0 · source

fn mode(&mut self, mode: u32) -> &mut Self

Sets the mode to create new directories with. This option defaults to 0o777.

§Examples
use std::fs::DirBuilder;
use std::os::unix::fs::DirBuilderExt;

let mut builder = DirBuilder::new();
builder.mode(0o755);

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DirBuilderExt for async_std::fs::DirBuilder

1.6.0 · source§

impl DirBuilderExt for std::fs::DirBuilder