Struct starnix_uapi::file_mode::FileMode
source · pub struct FileMode(/* private fields */);
Implementations§
source§impl FileMode
impl FileMode
pub const IFLNK: FileMode = _
pub const IFREG: FileMode = _
pub const IFDIR: FileMode = _
pub const IFCHR: FileMode = _
pub const IFBLK: FileMode = _
pub const IFIFO: FileMode = _
pub const IFSOCK: FileMode = _
pub const ISUID: FileMode = _
pub const ISGID: FileMode = _
pub const ISVTX: FileMode = _
pub const IRWXU: FileMode = _
pub const IRUSR: FileMode = _
pub const IWUSR: FileMode = _
pub const IXUSR: FileMode = _
pub const IRWXG: FileMode = _
pub const IRGRP: FileMode = _
pub const IWGRP: FileMode = _
pub const IXGRP: FileMode = _
pub const IRWXO: FileMode = _
pub const IROTH: FileMode = _
pub const IWOTH: FileMode = _
pub const IXOTH: FileMode = _
pub const IFMT: FileMode = _
pub const DEFAULT_UMASK: FileMode = _
pub const ALLOW_ALL: FileMode = _
pub const PERMISSIONS: FileMode = _
pub const EMPTY: FileMode = _
pub const fn from_bits(mask: u32) -> FileMode
pub fn from_string(mask: &BStr) -> Result<FileMode, Errno>
pub const fn bits(&self) -> u32
pub const fn contains(&self, other: FileMode) -> bool
pub const fn intersects(&self, other: FileMode) -> bool
pub fn fmt(&self) -> FileMode
pub const fn with_type(&self, file_type: FileMode) -> FileMode
pub const fn is_lnk(&self) -> bool
pub const fn is_reg(&self) -> bool
pub const fn is_dir(&self) -> bool
pub const fn is_chr(&self) -> bool
pub const fn is_blk(&self) -> bool
pub const fn is_fifo(&self) -> bool
pub const fn is_sock(&self) -> bool
Trait Implementations§
source§impl BitAndAssign for FileMode
impl BitAndAssign for FileMode
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign for FileMode
impl BitOrAssign for FileMode
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl PartialEq for FileMode
impl PartialEq for FileMode
impl Copy for FileMode
impl Eq for FileMode
impl StructuralPartialEq for FileMode
Auto Trait Implementations§
impl Freeze for FileMode
impl RefUnwindSafe for FileMode
impl Send for FileMode
impl Sync for FileMode
impl Unpin for FileMode
impl UnwindSafe for FileMode
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