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: bool
Implementations§
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 Freeze for OpenOptionsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)