Struct DirBuilder
pub struct DirBuilder { /* private fields */ }Available on crate feature
fs only.Expand description
A builder used to create directories in various manners.
Implementations§
§impl DirBuilder
impl DirBuilder
pub fn new() -> DirBuilder
pub fn new() -> DirBuilder
Creates a new set of options with default mode/security settings for all platforms and also non-recursive.
pub fn recursive(&mut self, recursive: bool) -> &mut DirBuilder
pub fn recursive(&mut self, recursive: bool) -> &mut DirBuilder
Indicates that directories should be created recursively, creating all parent directories. Parents that do not exist are created with the same security and permissions settings.
Trait Implementations§
§impl Default for DirBuilder
impl Default for DirBuilder
§fn default() -> DirBuilder
fn default() -> DirBuilder
Returns the “default value” for a type. Read more
§impl DirBuilderExt for DirBuilder
Available on Unix only.
impl DirBuilderExt for DirBuilder
Available on Unix only.
§fn mode(&mut self, mode: u32) -> &mut DirBuilder
fn mode(&mut self, mode: u32) -> &mut DirBuilder
Sets the mode to create new directories with. This option defaults to
0o777. Read more
Auto Trait Implementations§
impl Freeze for DirBuilder
impl RefUnwindSafe for DirBuilder
impl Send for DirBuilder
impl Sync for DirBuilder
impl Unpin for DirBuilder
impl UnwindSafe for DirBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more