Struct virtual_fs::OpenOptionsConfig 
source · pub struct OpenOptionsConfig {
    pub read: bool,
    pub write: bool,
    pub create_new: bool,
    pub create: bool,
    pub append: bool,
    pub truncate: bool,
}Fields§
§read: bool§write: bool§create_new: bool§create: bool§append: bool§truncate: boolImplementations§
source§impl OpenOptionsConfig
 
impl OpenOptionsConfig
sourcepub fn minimum_rights(&self, parent_rights: &Self) -> Self
 
pub fn minimum_rights(&self, parent_rights: &Self) -> Self
Returns the minimum allowed rights, given the rights of the parent directory
pub const fn read(&self) -> bool
pub const fn write(&self) -> bool
pub const fn create_new(&self) -> bool
pub const fn create(&self) -> bool
pub const fn append(&self) -> bool
pub const fn truncate(&self) -> bool
sourcepub const fn would_mutate(&self) -> bool
 
pub const fn would_mutate(&self) -> bool
Would a file opened with this OpenOptionsConfig change files on the
filesystem.
Trait Implementations§
source§impl Clone for OpenOptionsConfig
 
impl Clone for OpenOptionsConfig
source§fn clone(&self) -> OpenOptionsConfig
 
fn clone(&self) -> OpenOptionsConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for OpenOptionsConfig
impl Send for OpenOptionsConfig
impl Sync for OpenOptionsConfig
impl Unpin for OpenOptionsConfig
impl UnwindSafe for OpenOptionsConfig
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