Struct linux_stat::Mode
source · #[repr(transparent)]pub struct Mode(_);
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 PartialEq<Mode> for Mode
impl PartialEq<Mode> for Mode
source§impl PartialOrd<Mode> for Mode
impl PartialOrd<Mode> for Mode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Mode
impl Eq for Mode
impl StructuralEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
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