pub struct FileAccessRights { /* private fields */ }Implementations§
Source§impl FileAccessRights
impl FileAccessRights
pub const FILE_ADD_FILE: FileAccessRights
pub const FILE_ADD_SUBDIRECTORY: FileAccessRights
pub const FILE_ALL_ACCESS: FileAccessRights
pub const FILE_APPEND_DATA: FileAccessRights
pub const FILE_CREATE_PIPE_INSTANCE: FileAccessRights
pub const FILE_DELETE_CHILD: FileAccessRights
pub const FILE_EXECUTE: FileAccessRights
pub const FILE_LIST_DIRECTORY: FileAccessRights
pub const FILE_READ_ATTRIBUTES: FileAccessRights
pub const FILE_READ_DATA: FileAccessRights
pub const FILE_READ_EA: FileAccessRights
pub const FILE_TRAVERSE: FileAccessRights
pub const FILE_WRITE_ATTRIBUTES: FileAccessRights
pub const FILE_WRITE_DATA: FileAccessRights
pub const FILE_WRITE_EA: FileAccessRights
pub const STANDARD_RIGHTS_READ: FileAccessRights
pub const STANDARD_RIGHTS_WRITE: FileAccessRights
pub const FILE_GENERIC_EXECUTE: FileAccessRights
pub const FILE_GENERIC_READ: FileAccessRights
pub const FILE_GENERIC_WRITE: FileAccessRights
pub const SYNCHRONIZE: FileAccessRights
pub const GENERIC_ALL: FileAccessRights
pub const GENERIC_EXECUTE: FileAccessRights
pub const GENERIC_READ: FileAccessRights
pub const GENERIC_WRITE: FileAccessRights
Sourcepub const fn empty() -> FileAccessRights
pub const fn empty() -> FileAccessRights
Returns an empty set of flags
Sourcepub const fn all() -> FileAccessRights
pub const fn all() -> FileAccessRights
Returns the set containing all flags.
Sourcepub fn from_bits(bits: DWORD) -> Option<FileAccessRights>
pub fn from_bits(bits: DWORD) -> Option<FileAccessRights>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: DWORD) -> FileAccessRights
pub const fn from_bits_truncate(bits: DWORD) -> FileAccessRights
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: DWORD) -> FileAccessRights
pub const unsafe fn from_bits_unchecked(bits: DWORD) -> FileAccessRights
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: FileAccessRights) -> bool
pub const fn intersects(&self, other: FileAccessRights) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: FileAccessRights) -> bool
pub const fn contains(&self, other: FileAccessRights) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: FileAccessRights)
pub fn insert(&mut self, other: FileAccessRights)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: FileAccessRights)
pub fn remove(&mut self, other: FileAccessRights)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: FileAccessRights)
pub fn toggle(&mut self, other: FileAccessRights)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: FileAccessRights, value: bool)
pub fn set(&mut self, other: FileAccessRights, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for FileAccessRights
impl Binary for FileAccessRights
Source§impl BitAnd for FileAccessRights
impl BitAnd for FileAccessRights
Source§fn bitand(self, other: FileAccessRights) -> FileAccessRights
fn bitand(self, other: FileAccessRights) -> FileAccessRights
Returns the intersection between the two sets of flags.
Source§type Output = FileAccessRights
type Output = FileAccessRights
& operator.Source§impl BitAndAssign for FileAccessRights
impl BitAndAssign for FileAccessRights
Source§fn bitand_assign(&mut self, other: FileAccessRights)
fn bitand_assign(&mut self, other: FileAccessRights)
Disables all flags disabled in the set.
Source§impl BitOr for FileAccessRights
impl BitOr for FileAccessRights
Source§fn bitor(self, other: FileAccessRights) -> FileAccessRights
fn bitor(self, other: FileAccessRights) -> FileAccessRights
Returns the union of the two sets of flags.
Source§type Output = FileAccessRights
type Output = FileAccessRights
| operator.Source§impl BitOrAssign for FileAccessRights
impl BitOrAssign for FileAccessRights
Source§fn bitor_assign(&mut self, other: FileAccessRights)
fn bitor_assign(&mut self, other: FileAccessRights)
Adds the set of flags.
Source§impl BitXor for FileAccessRights
impl BitXor for FileAccessRights
Source§fn bitxor(self, other: FileAccessRights) -> FileAccessRights
fn bitxor(self, other: FileAccessRights) -> FileAccessRights
Returns the left flags, but with all the right flags toggled.
Source§type Output = FileAccessRights
type Output = FileAccessRights
^ operator.Source§impl BitXorAssign for FileAccessRights
impl BitXorAssign for FileAccessRights
Source§fn bitxor_assign(&mut self, other: FileAccessRights)
fn bitxor_assign(&mut self, other: FileAccessRights)
Toggles the set of flags.
Source§impl Clone for FileAccessRights
impl Clone for FileAccessRights
Source§fn clone(&self) -> FileAccessRights
fn clone(&self) -> FileAccessRights
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FileAccessRights
impl Debug for FileAccessRights
Source§impl Extend<FileAccessRights> for FileAccessRights
impl Extend<FileAccessRights> for FileAccessRights
Source§fn extend<T: IntoIterator<Item = FileAccessRights>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = FileAccessRights>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<FileAccessRights> for FileAccessRights
impl FromIterator<FileAccessRights> for FileAccessRights
Source§fn from_iter<T: IntoIterator<Item = FileAccessRights>>(
iterator: T,
) -> FileAccessRights
fn from_iter<T: IntoIterator<Item = FileAccessRights>>( iterator: T, ) -> FileAccessRights
Source§impl Hash for FileAccessRights
impl Hash for FileAccessRights
Source§impl LowerHex for FileAccessRights
impl LowerHex for FileAccessRights
Source§impl Not for FileAccessRights
impl Not for FileAccessRights
Source§fn not(self) -> FileAccessRights
fn not(self) -> FileAccessRights
Returns the complement of this set of flags.
Source§type Output = FileAccessRights
type Output = FileAccessRights
! operator.Source§impl Octal for FileAccessRights
impl Octal for FileAccessRights
Source§impl Ord for FileAccessRights
impl Ord for FileAccessRights
Source§fn cmp(&self, other: &FileAccessRights) -> Ordering
fn cmp(&self, other: &FileAccessRights) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FileAccessRights
impl PartialEq for FileAccessRights
Source§impl PartialOrd for FileAccessRights
impl PartialOrd for FileAccessRights
Source§impl Sub for FileAccessRights
impl Sub for FileAccessRights
Source§fn sub(self, other: FileAccessRights) -> FileAccessRights
fn sub(self, other: FileAccessRights) -> FileAccessRights
Returns the set difference of the two sets of flags.
Source§type Output = FileAccessRights
type Output = FileAccessRights
- operator.Source§impl SubAssign for FileAccessRights
impl SubAssign for FileAccessRights
Source§fn sub_assign(&mut self, other: FileAccessRights)
fn sub_assign(&mut self, other: FileAccessRights)
Disables all flags enabled in the set.