Struct lldb_sys::FilePermissions
[−]
#[repr(C)]pub struct FilePermissions { /* fields omitted */ }
Methods
impl FilePermissions
const WORLD_EXECUTE: FilePermissions
WORLD_EXECUTE: FilePermissions = FilePermissions{bits: 1,}
const WORLD_WRITE: FilePermissions
WORLD_WRITE: FilePermissions = FilePermissions{bits: 2,}
const WORLD_READ: FilePermissions
WORLD_READ: FilePermissions = FilePermissions{bits: 4,}
const GROUP_EXECUTE: FilePermissions
GROUP_EXECUTE: FilePermissions = FilePermissions{bits: 8,}
const GROUP_WRITE: FilePermissions
GROUP_WRITE: FilePermissions = FilePermissions{bits: 16,}
const GROUP_READ: FilePermissions
GROUP_READ: FilePermissions = FilePermissions{bits: 32,}
const USER_EXECUTE: FilePermissions
USER_EXECUTE: FilePermissions = FilePermissions{bits: 64,}
const USER_WRITE: FilePermissions
USER_WRITE: FilePermissions = FilePermissions{bits: 128,}
const USER_READ: FilePermissions
USER_READ: FilePermissions = FilePermissions{bits: 256,}
const WORLD_RX: FilePermissions
WORLD_RX: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::WORLD_EXECUTE.bits,}
const WORLD_RW: FilePermissions
WORLD_RW: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::WORLD_WRITE.bits,}
const WORLD_RWX: FilePermissions
WORLD_RWX: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::WORLD_WRITE.bits | <Self>::WORLD_EXECUTE.bits,}
const GROUP_RX: FilePermissions
GROUP_RX: FilePermissions = FilePermissions{bits: <Self>::GROUP_READ.bits | <Self>::GROUP_EXECUTE.bits,}
const GROUP_RW: FilePermissions
GROUP_RW: FilePermissions = FilePermissions{bits: <Self>::GROUP_READ.bits | <Self>::GROUP_WRITE.bits,}
const GROUP_RWX: FilePermissions
GROUP_RWX: FilePermissions = FilePermissions{bits: <Self>::GROUP_READ.bits | <Self>::GROUP_WRITE.bits | <Self>::GROUP_EXECUTE.bits,}
const USER_RX: FilePermissions
USER_RX: FilePermissions = FilePermissions{bits: <Self>::USER_READ.bits | <Self>::USER_EXECUTE.bits,}
const USER_RW: FilePermissions
USER_RW: FilePermissions = FilePermissions{bits: <Self>::USER_READ.bits | <Self>::USER_WRITE.bits,}
const USER_RWX: FilePermissions
USER_RWX: FilePermissions = FilePermissions{bits: <Self>::USER_READ.bits | <Self>::USER_WRITE.bits | <Self>::USER_EXECUTE.bits,}
const EVERYONE_R: FilePermissions
EVERYONE_R: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::GROUP_READ.bits | <Self>::USER_READ.bits,}
const EVERYONE_W: FilePermissions
EVERYONE_W: FilePermissions = FilePermissions{bits: <Self>::WORLD_WRITE.bits | <Self>::GROUP_WRITE.bits | <Self>::USER_WRITE.bits,}
const EVERYONE_X: FilePermissions
EVERYONE_X: FilePermissions = FilePermissions{bits: <Self>::WORLD_EXECUTE.bits | <Self>::GROUP_EXECUTE.bits | <Self>::USER_EXECUTE.bits,}
const EVERYONE_RW: FilePermissions
EVERYONE_RW: FilePermissions = FilePermissions{bits: <Self>::EVERYONE_R.bits | <Self>::EVERYONE_W.bits,}
const EVERYONE_RX: FilePermissions
EVERYONE_RX: FilePermissions = FilePermissions{bits: <Self>::EVERYONE_R.bits | <Self>::EVERYONE_X.bits,}
const EVERYONE_RWX: FilePermissions
EVERYONE_RWX: FilePermissions = FilePermissions{bits: <Self>::EVERYONE_R.bits | <Self>::EVERYONE_W.bits | <Self>::EVERYONE_X.bits,}
const FILE_DEFAULT: FilePermissions
FILE_DEFAULT: FilePermissions = FilePermissions{bits: <Self>::USER_RW.bits,}
const DIRECTORY_DEFAULT: FilePermissions
DIRECTORY_DEFAULT: FilePermissions = FilePermissions{bits: <Self>::USER_RWX.bits,}
fn empty() -> FilePermissions
Returns an empty set of flags.
fn all() -> FilePermissions
Returns the set containing all flags.
fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
fn from_bits(bits: u32) -> Option<FilePermissions>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u32) -> FilePermissions
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: FilePermissions) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: FilePermissions) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: FilePermissions)
Inserts the specified flags in-place.
fn remove(&mut self, other: FilePermissions)
Removes the specified flags in-place.
fn toggle(&mut self, other: FilePermissions)
Toggles the specified flags in-place.
fn set(&mut self, other: FilePermissions, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for FilePermissions
impl PartialEq for FilePermissions
fn eq(&self, __arg_0: &FilePermissions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FilePermissions) -> bool
This method tests for !=
.
impl Eq for FilePermissions
impl Clone for FilePermissions
fn clone(&self) -> FilePermissions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd for FilePermissions
fn partial_cmp(&self, __arg_0: &FilePermissions) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &FilePermissions) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &FilePermissions) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &FilePermissions) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &FilePermissions) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for FilePermissions
fn cmp(&self, __arg_0: &FilePermissions) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the minimum of two values. Read more
impl Hash for FilePermissions
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for FilePermissions
impl Binary for FilePermissions
impl Octal for FilePermissions
impl LowerHex for FilePermissions
impl UpperHex for FilePermissions
impl BitOr for FilePermissions
type Output = FilePermissions
The resulting type after applying the |
operator.
fn bitor(self, other: FilePermissions) -> FilePermissions
Returns the union of the two sets of flags.
impl BitOrAssign for FilePermissions
fn bitor_assign(&mut self, other: FilePermissions)
Adds the set of flags.
impl BitXor for FilePermissions
type Output = FilePermissions
The resulting type after applying the ^
operator.
fn bitxor(self, other: FilePermissions) -> FilePermissions
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for FilePermissions
fn bitxor_assign(&mut self, other: FilePermissions)
Toggles the set of flags.
impl BitAnd for FilePermissions
type Output = FilePermissions
The resulting type after applying the &
operator.
fn bitand(self, other: FilePermissions) -> FilePermissions
Returns the intersection between the two sets of flags.
impl BitAndAssign for FilePermissions
fn bitand_assign(&mut self, other: FilePermissions)
Disables all flags disabled in the set.
impl Sub for FilePermissions
type Output = FilePermissions
The resulting type after applying the -
operator.
fn sub(self, other: FilePermissions) -> FilePermissions
Returns the set difference of the two sets of flags.
impl SubAssign for FilePermissions
fn sub_assign(&mut self, other: FilePermissions)
Disables all flags enabled in the set.
impl Not for FilePermissions
type Output = FilePermissions
The resulting type after applying the !
operator.
fn not(self) -> FilePermissions
Returns the complement of this set of flags.
impl Extend<FilePermissions> for FilePermissions
fn extend<T: IntoIterator<Item = FilePermissions>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<FilePermissions> for FilePermissions
fn from_iter<T: IntoIterator<Item = FilePermissions>>(
iterator: T
) -> FilePermissions
iterator: T
) -> FilePermissions
Creates a value from an iterator. Read more