Struct procfs::process::NFSServerCaps
source · pub struct NFSServerCaps(/* private fields */);
Implementations§
source§impl NFSServerCaps
impl NFSServerCaps
pub const NFS_CAP_READDIRPLUS: NFSServerCaps = _
pub const NFS_CAP_HARDLINKS: NFSServerCaps = _
pub const NFS_CAP_SYMLINKS: NFSServerCaps = _
pub const NFS_CAP_ACLS: NFSServerCaps = _
pub const NFS_CAP_ATOMIC_OPEN: NFSServerCaps = _
pub const NFS_CAP_LGOPEN: NFSServerCaps = _
pub const NFS_CAP_FILEID: NFSServerCaps = _
pub const NFS_CAP_MODE: NFSServerCaps = _
pub const NFS_CAP_NLINK: NFSServerCaps = _
pub const NFS_CAP_OWNER: NFSServerCaps = _
pub const NFS_CAP_OWNER_GROUP: NFSServerCaps = _
pub const NFS_CAP_ATIME: NFSServerCaps = _
pub const NFS_CAP_CTIME: NFSServerCaps = _
pub const NFS_CAP_MTIME: NFSServerCaps = _
pub const NFS_CAP_POSIX_LOCK: NFSServerCaps = _
pub const NFS_CAP_UIDGID_NOMAP: NFSServerCaps = _
pub const NFS_CAP_STATEID_NFSV41: NFSServerCaps = _
pub const NFS_CAP_ATOMIC_OPEN_V1: NFSServerCaps = _
pub const NFS_CAP_SECURITY_LABEL: NFSServerCaps = _
pub const NFS_CAP_SEEK: NFSServerCaps = _
pub const NFS_CAP_ALLOCATE: NFSServerCaps = _
pub const NFS_CAP_DEALLOCATE: NFSServerCaps = _
pub const NFS_CAP_LAYOUTSTATS: NFSServerCaps = _
pub const NFS_CAP_CLONE: NFSServerCaps = _
pub const NFS_CAP_COPY: NFSServerCaps = _
pub const NFS_CAP_OFFLOAD_CANCEL: NFSServerCaps = _
source§impl NFSServerCaps
impl NFSServerCaps
sourcepub const fn empty() -> NFSServerCaps
pub const fn empty() -> NFSServerCaps
Get a flags value with all bits unset.
sourcepub const fn all() -> NFSServerCaps
pub const fn all() -> NFSServerCaps
Get a flags value with all known bits set.
sourcepub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
sourcepub const fn from_bits(bits: u32) -> Option<NFSServerCaps>
pub const fn from_bits(bits: u32) -> Option<NFSServerCaps>
Convert from a bits value.
This method will return None
if any unknown bits are set.
sourcepub const fn from_bits_truncate(bits: u32) -> NFSServerCaps
pub const fn from_bits_truncate(bits: u32) -> NFSServerCaps
Convert from a bits value, unsetting any unknown bits.
sourcepub const fn from_bits_retain(bits: u32) -> NFSServerCaps
pub const fn from_bits_retain(bits: u32) -> NFSServerCaps
Convert from a bits value exactly.
sourcepub fn from_name(name: &str) -> Option<NFSServerCaps>
pub fn from_name(name: &str) -> Option<NFSServerCaps>
Get a flags value with the bits of a flag with the given name set.
This method will return None
if name
is empty or doesn’t
correspond to any named flag.
sourcepub const fn intersects(&self, other: NFSServerCaps) -> bool
pub const fn intersects(&self, other: NFSServerCaps) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
sourcepub const fn contains(&self, other: NFSServerCaps) -> bool
pub const fn contains(&self, other: NFSServerCaps) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
sourcepub fn insert(&mut self, other: NFSServerCaps)
pub fn insert(&mut self, other: NFSServerCaps)
The bitwise or (|
) of the bits in two flags values.
sourcepub fn remove(&mut self, other: NFSServerCaps)
pub fn remove(&mut self, other: NFSServerCaps)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
remove
won’t truncate other
, but the !
operator will.
sourcepub fn toggle(&mut self, other: NFSServerCaps)
pub fn toggle(&mut self, other: NFSServerCaps)
The bitwise exclusive-or (^
) of the bits in two flags values.
sourcepub fn set(&mut self, other: NFSServerCaps, value: bool)
pub fn set(&mut self, other: NFSServerCaps, value: bool)
Call insert
when value
is true
or remove
when value
is false
.
sourcepub const fn intersection(self, other: NFSServerCaps) -> NFSServerCaps
pub const fn intersection(self, other: NFSServerCaps) -> NFSServerCaps
The bitwise and (&
) of the bits in two flags values.
sourcepub const fn union(self, other: NFSServerCaps) -> NFSServerCaps
pub const fn union(self, other: NFSServerCaps) -> NFSServerCaps
The bitwise or (|
) of the bits in two flags values.
sourcepub const fn difference(self, other: NFSServerCaps) -> NFSServerCaps
pub const fn difference(self, other: NFSServerCaps) -> NFSServerCaps
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
sourcepub const fn symmetric_difference(self, other: NFSServerCaps) -> NFSServerCaps
pub const fn symmetric_difference(self, other: NFSServerCaps) -> NFSServerCaps
The bitwise exclusive-or (^
) of the bits in two flags values.
sourcepub const fn complement(self) -> NFSServerCaps
pub const fn complement(self) -> NFSServerCaps
The bitwise negation (!
) of the bits in a flags value, truncating the result.
source§impl NFSServerCaps
impl NFSServerCaps
sourcepub const fn iter(&self) -> Iter<NFSServerCaps>
pub const fn iter(&self) -> Iter<NFSServerCaps>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
sourcepub const fn iter_names(&self) -> IterNames<NFSServerCaps>
pub const fn iter_names(&self) -> IterNames<NFSServerCaps>
Yield a set of contained named flags values.
This method is like iter
, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
source§impl Binary for NFSServerCaps
impl Binary for NFSServerCaps
source§impl BitAnd for NFSServerCaps
impl BitAnd for NFSServerCaps
source§fn bitand(self, other: NFSServerCaps) -> NFSServerCaps
fn bitand(self, other: NFSServerCaps) -> NFSServerCaps
The bitwise and (&
) of the bits in two flags values.
§type Output = NFSServerCaps
type Output = NFSServerCaps
&
operator.source§impl BitAndAssign for NFSServerCaps
impl BitAndAssign for NFSServerCaps
source§fn bitand_assign(&mut self, other: NFSServerCaps)
fn bitand_assign(&mut self, other: NFSServerCaps)
The bitwise and (&
) of the bits in two flags values.
source§impl BitOr for NFSServerCaps
impl BitOr for NFSServerCaps
source§fn bitor(self, other: NFSServerCaps) -> NFSServerCaps
fn bitor(self, other: NFSServerCaps) -> NFSServerCaps
The bitwise or (|
) of the bits in two flags values.
§type Output = NFSServerCaps
type Output = NFSServerCaps
|
operator.source§impl BitOrAssign for NFSServerCaps
impl BitOrAssign for NFSServerCaps
source§fn bitor_assign(&mut self, other: NFSServerCaps)
fn bitor_assign(&mut self, other: NFSServerCaps)
The bitwise or (|
) of the bits in two flags values.
source§impl BitXor for NFSServerCaps
impl BitXor for NFSServerCaps
source§fn bitxor(self, other: NFSServerCaps) -> NFSServerCaps
fn bitxor(self, other: NFSServerCaps) -> NFSServerCaps
The bitwise exclusive-or (^
) of the bits in two flags values.
§type Output = NFSServerCaps
type Output = NFSServerCaps
^
operator.source§impl BitXorAssign for NFSServerCaps
impl BitXorAssign for NFSServerCaps
source§fn bitxor_assign(&mut self, other: NFSServerCaps)
fn bitxor_assign(&mut self, other: NFSServerCaps)
The bitwise exclusive-or (^
) of the bits in two flags values.
source§impl Clone for NFSServerCaps
impl Clone for NFSServerCaps
source§fn clone(&self) -> NFSServerCaps
fn clone(&self) -> NFSServerCaps
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NFSServerCaps
impl Debug for NFSServerCaps
source§impl<'de> Deserialize<'de> for NFSServerCaps
impl<'de> Deserialize<'de> for NFSServerCaps
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NFSServerCaps, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<NFSServerCaps, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl Extend<NFSServerCaps> for NFSServerCaps
impl Extend<NFSServerCaps> for NFSServerCaps
source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = NFSServerCaps>,
fn extend<T>(&mut self, iterator: T)where T: IntoIterator<Item = NFSServerCaps>,
The bitwise or (|
) of the bits in each flags value.
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 Flags for NFSServerCaps
impl Flags for NFSServerCaps
source§const FLAGS: &'static [Flag<NFSServerCaps>] = _
const FLAGS: &'static [Flag<NFSServerCaps>] = _
source§fn from_bits_retain(bits: u32) -> NFSServerCaps
fn from_bits_retain(bits: u32) -> NFSServerCaps
source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
source§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere Self: Sized,
source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere Self: Sized,
source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where Self: Sized,
|
) of the bits in two flags values.source§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where Self: Sized,
&!
). Read moresource§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where Self: Sized,
^
) of the bits in two flags values.source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&
) of the bits in two flags values.source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!
). Read moresource§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^
) of the bits in two flags values.source§fn complement(self) -> Self
fn complement(self) -> Self
!
) of the bits in a flags value, truncating the result.source§impl FromIterator<NFSServerCaps> for NFSServerCaps
impl FromIterator<NFSServerCaps> for NFSServerCaps
source§fn from_iter<T>(iterator: T) -> NFSServerCapswhere
T: IntoIterator<Item = NFSServerCaps>,
fn from_iter<T>(iterator: T) -> NFSServerCapswhere T: IntoIterator<Item = NFSServerCaps>,
The bitwise or (|
) of the bits in each flags value.
source§impl Hash for NFSServerCaps
impl Hash for NFSServerCaps
source§impl IntoIterator for NFSServerCaps
impl IntoIterator for NFSServerCaps
§type Item = NFSServerCaps
type Item = NFSServerCaps
§type IntoIter = Iter<NFSServerCaps>
type IntoIter = Iter<NFSServerCaps>
source§fn into_iter(self) -> <NFSServerCaps as IntoIterator>::IntoIter
fn into_iter(self) -> <NFSServerCaps as IntoIterator>::IntoIter
source§impl LowerHex for NFSServerCaps
impl LowerHex for NFSServerCaps
source§impl Not for NFSServerCaps
impl Not for NFSServerCaps
source§fn not(self) -> NFSServerCaps
fn not(self) -> NFSServerCaps
The bitwise negation (!
) of the bits in a flags value, truncating the result.
§type Output = NFSServerCaps
type Output = NFSServerCaps
!
operator.source§impl Octal for NFSServerCaps
impl Octal for NFSServerCaps
source§impl Ord for NFSServerCaps
impl Ord for NFSServerCaps
source§fn cmp(&self, other: &NFSServerCaps) -> Ordering
fn cmp(&self, other: &NFSServerCaps) -> 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 NFSServerCaps
impl PartialEq for NFSServerCaps
source§fn eq(&self, other: &NFSServerCaps) -> bool
fn eq(&self, other: &NFSServerCaps) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NFSServerCaps
impl PartialOrd for NFSServerCaps
source§fn partial_cmp(&self, other: &NFSServerCaps) -> Option<Ordering>
fn partial_cmp(&self, other: &NFSServerCaps) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for NFSServerCaps
impl Serialize for NFSServerCaps
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
source§impl Sub for NFSServerCaps
impl Sub for NFSServerCaps
source§fn sub(self, other: NFSServerCaps) -> NFSServerCaps
fn sub(self, other: NFSServerCaps) -> NFSServerCaps
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
§type Output = NFSServerCaps
type Output = NFSServerCaps
-
operator.source§impl SubAssign for NFSServerCaps
impl SubAssign for NFSServerCaps
source§fn sub_assign(&mut self, other: NFSServerCaps)
fn sub_assign(&mut self, other: NFSServerCaps)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.