std::os::unix::fs::DirBuilderExt - Rust
Description: API documentation for the Rust `DirBuilderExt` trait in crate `std`.
Keywords: rust, rustlang, rust-lang, DirBuilderExt

# 1.6.0[−][src]Trait std::os::unix::fs::DirBuilderExt

    pub trait DirBuilderExt {
        fn mode(&mut self, mode: u32) -> &mut Self;
    }

This is supported on Unix only.

Unix-specific extensions to `fs::DirBuilder`.

## Required methods

###
ⓘImportant traits for &'_ mut I

### Important traits for &'_ mut I

`impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, R: Read + ?Sized> Read for &'_ mut Rimpl<'_, W: Write + ?Sized> Write for &'_ mut W`
`fn mode(&mut self, mode: u32) -> &mut Self`

This is supported on Unix only.

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);Run

Loading content...

## Implementors

### `impl DirBuilderExt for DirBuilder`[src]

#### `fn mode(&mut self, mode: u32) -> &mut DirBuilder`[src]

This is supported on Unix only.
Loading content...