Struct hadoop_common::fs::permission::FsCreateModes
source · pub struct FsCreateModes { /* private fields */ }
Expand description
A class that stores both masked and unmasked create modes and is a drop-in replacement for masked permission.
Implementations§
source§impl FsCreateModes
impl FsCreateModes
sourcepub fn apply_umask(mode: &FsPermission, umask: &FsPermission) -> Self
pub fn apply_umask(mode: &FsPermission, umask: &FsPermission) -> Self
Create from unmasked mode and umask.
sourcepub fn create(masked: &FsPermission, unmasked: &FsPermission) -> Self
pub fn create(masked: &FsPermission, unmasked: &FsPermission) -> Self
Create from masked and unmasked modes.
pub fn get_masked(&self) -> &FsPermission
pub fn get_unmasked(&self) -> &FsPermission
Auto Trait Implementations§
impl RefUnwindSafe for FsCreateModes
impl Send for FsCreateModes
impl Sync for FsCreateModes
impl Unpin for FsCreateModes
impl UnwindSafe for FsCreateModes
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