Trait tokio::fs::os::unix::DirBuilderExt[][src]

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

Notable traits for &'_ mut F

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

Unix-specific extensions to DirBuilder.

Required methods

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

Notable traits for &'_ mut F

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

Sets the mode to create new directories with.

This option defaults to 0o777.

Examples

use tokio::fs::DirBuilder;
use tokio::fs::os::unix::DirBuilderExt;

let mut builder = DirBuilder::new();
builder.mode(0o775);
Loading content...

Implementors

impl DirBuilderExt for DirBuilder[src]

Loading content...