Struct genfs::DirOptions
[−]
[src]
pub struct DirOptions<Permissions> { /* fields omitted */ }
A builder used to create directories in various manners.
Methods
impl<Permissions: Default> DirOptions<Permissions>
[src]
pub fn new() -> Self
[src]
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 Self
[src]
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.
This option defaults to false
.
pub fn mode(&mut self, mode: Permissions) -> &mut Self
[src]
Sets the mode to create new directories with.
pub fn custom_flags(&mut self, flags: u32) -> &mut Self
[src]
Pass custom flags to the flags
argument of open
.
Trait Implementations
impl<Permissions: Debug> Debug for DirOptions<Permissions>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<Permissions: Clone> Clone for DirOptions<Permissions>
[src]
fn clone(&self) -> DirOptions<Permissions>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<Permissions: PartialEq> PartialEq for DirOptions<Permissions>
[src]
fn eq(&self, __arg_0: &DirOptions<Permissions>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DirOptions<Permissions>) -> bool
[src]
This method tests for !=
.
impl<Permissions: Eq> Eq for DirOptions<Permissions>
[src]
impl<Permissions: Default> Default for DirOptions<Permissions>
[src]
fn default() -> DirOptions<Permissions>
[src]
Returns the "default value" for a type. Read more
impl<Permissions: Hash> Hash for DirOptions<Permissions>
[src]
Auto Trait Implementations
impl<Permissions> Send for DirOptions<Permissions> where
Permissions: Send,
Permissions: Send,
impl<Permissions> Sync for DirOptions<Permissions> where
Permissions: Sync,
Permissions: Sync,