Trait async_std::os::unix::fs::DirBuilderExt1.6.0[][src]

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

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
; }

Unix-specific extensions to fs::DirBuilder.

Required methods

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

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

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);
Loading content...

Implementations on Foreign Types

impl DirBuilderExt for DirBuilder[src]

Loading content...

Implementors

impl DirBuilderExt for async_std::fs::DirBuilder[src]

Loading content...