pub struct EntryMode(/* private fields */);Implementations§
Source§impl EntryMode
impl EntryMode
pub const fn new(mode: u32) -> Self
Sourcepub const fn user(&self) -> (bool, bool, bool)
pub const fn user(&self) -> (bool, bool, bool)
Returns the user permissions (read, write, execute).
Sourcepub const fn set_user(&mut self, read: bool, write: bool, execute: bool)
pub const fn set_user(&mut self, read: bool, write: bool, execute: bool)
Sets the user permissions (read, write, execute).
Sourcepub const fn group(&self) -> (bool, bool, bool)
pub const fn group(&self) -> (bool, bool, bool)
Returns the group permissions (read, write, execute).
Sourcepub const fn set_group(&mut self, read: bool, write: bool, execute: bool)
pub const fn set_group(&mut self, read: bool, write: bool, execute: bool)
Sets the group permissions (read, write, execute).
Trait Implementations§
Source§impl From<EntryMode> for Permissions
impl From<EntryMode> for Permissions
Source§fn from(permissions: EntryMode) -> Permissions
fn from(permissions: EntryMode) -> Permissions
Converts to this type from the input type.
Source§impl From<Permissions> for EntryMode
impl From<Permissions> for EntryMode
Source§fn from(permissions: Permissions) -> Self
fn from(permissions: Permissions) -> Self
Converts to this type from the input type.
impl Copy for EntryMode
Auto Trait Implementations§
impl Freeze for EntryMode
impl RefUnwindSafe for EntryMode
impl Send for EntryMode
impl Sync for EntryMode
impl Unpin for EntryMode
impl UnwindSafe for EntryMode
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more