pub struct Mode(/* private fields */);
Expand description
File permissions representation.
Implementations§
Source§impl Mode
impl Mode
Sourcepub const fn owner(&self) -> ModePermission
pub const fn owner(&self) -> ModePermission
Returns owner’s file permissions.
Sourcepub const fn group(&self) -> ModePermission
pub const fn group(&self) -> ModePermission
Returns group’s file permissions.
Sourcepub const fn other(&self) -> ModePermission
pub const fn other(&self) -> ModePermission
Returns other’s file permissions.
Trait Implementations§
Source§impl Ord for Mode
impl Ord for Mode
Source§impl PartialOrd for Mode
impl PartialOrd for Mode
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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