pub struct Mode(/* private fields */);
Implementations§
source§impl Mode
impl Mode
pub const S_IRWXU: Mode = _
pub const S_IRUSR: Mode = _
pub const S_IWUSR: Mode = _
pub const S_IXUSR: Mode = _
pub const S_IRWXG: Mode = _
pub const S_IRGRP: Mode = _
pub const S_IWGRP: Mode = _
pub const S_IXGRP: Mode = _
pub const S_IRWXO: Mode = _
pub const S_IROTH: Mode = _
pub const S_IWOTH: Mode = _
pub const S_IXOTH: Mode = _
pub const S_ISUID: Mode = _
pub const S_ISGID: Mode = _
pub const S_ISVTX: Mode = _
pub const S_IFIFO: Mode = _
pub const S_IFCHR: Mode = _
pub const S_IFDIR: Mode = _
pub const S_IFBLK: Mode = _
pub const S_IFREG: Mode = _
pub const S_IFLNK: Mode = _
pub const S_IFSOCK: Mode = _
pub const S_IFMT: Mode = _
pub const fn bits(&self) -> u32
pub const fn empty() -> Mode
pub fn contains(&self, other: Mode) -> bool
Trait Implementations§
source§impl BitAndAssign for Mode
impl BitAndAssign for Mode
source§fn bitand_assign(&mut self, rhs: Mode)
fn bitand_assign(&mut self, rhs: Mode)
Performs the
&=
operation. Read moresource§impl BitOrAssign for Mode
impl BitOrAssign for Mode
source§fn bitor_assign(&mut self, rhs: Mode)
fn bitor_assign(&mut self, rhs: Mode)
Performs the
|=
operation. Read moresource§impl Ord for Mode
impl Ord for Mode
source§impl PartialEq for Mode
impl PartialEq for Mode
source§impl PartialOrd for Mode
impl PartialOrd 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