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
pub fn user_access(&self) -> Access
pub fn group_access(&self) -> Access
pub fn other_access(&self) -> Access
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 moreimpl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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