Struct dpdk_unix::android_linux::capabilities::CapabilitySet
[−]
pub struct CapabilitySet { /* fields omitted */ }
Methods
impl CapabilitySet
const AuditControl: CapabilitySet
AuditControl: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_AUDIT_CONTROL as u32,}
const AuditWrite: CapabilitySet
AuditWrite: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_AUDIT_WRITE as u32,}
const Chown: CapabilitySet
Chown: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_CHOWN as u32,}
const DiscretionaryAccessControlBypass: CapabilitySet
DiscretionaryAccessControlBypass: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_DAC_OVERRIDE as u32,}
const DiscretionaryAccessControlFileReadBypass: CapabilitySet
DiscretionaryAccessControlFileReadBypass: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_DAC_READ_SEARCH as u32,}
const FileOwnerBypass: CapabilitySet
FileOwnerBypass: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_FOWNER as u32,}
const FileSetId: CapabilitySet
FileSetId: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_FSETID as u32,}
const LockMemory: CapabilitySet
LockMemory: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_IPC_LOCK as u32,}
const IpcOwner: CapabilitySet
IpcOwner: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_IPC_OWNER as u32,}
const Kill: CapabilitySet
Kill: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_KILL as u32,}
const Lease: CapabilitySet
Lease: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_LEASE as u32,}
const Immutable: CapabilitySet
Immutable: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_LINUX_IMMUTABLE as u32,}
const MakeNodes: CapabilitySet
MakeNodes: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_MKNOD as u32,}
const SystemAdministration: CapabilitySet
SystemAdministration: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SYS_ADMIN as u32,}
const NetworkAdministration: CapabilitySet
NetworkAdministration: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_NET_ADMIN as u32,}
const BindPortsBelow1024: CapabilitySet
BindPortsBelow1024: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_NET_BIND_SERVICE as u32,}
const NetRaw: CapabilitySet
NetRaw: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_NET_RAW as u32,}
const SetUid: CapabilitySet
SetUid: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SETUID as u32,}
const SetGid: CapabilitySet
SetGid: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SETGID as u32,}
const SetFileCapabilities: CapabilitySet
SetFileCapabilities: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SETFCAP as u32,}
const SetProcessCapabilities: CapabilitySet
SetProcessCapabilities: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SETPCAP as u32,}
const RebootAndKexecLoad: CapabilitySet
RebootAndKexecLoad: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SYS_BOOT as u32,}
const Chroot: CapabilitySet
Chroot: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SYS_CHROOT as u32,}
const KernelModule: CapabilitySet
KernelModule: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SYS_MODULE as u32,}
const Nice: CapabilitySet
Nice: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SYS_NICE as u32,}
const ProcessAccounting: CapabilitySet
ProcessAccounting: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SYS_PACCT as u32,}
const PTrace: CapabilitySet
PTrace: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SYS_PTRACE as u32,}
const RawIO: CapabilitySet
RawIO: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SYS_RAWIO as u32,}
const Resource: CapabilitySet
Resource: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SYS_RESOURCE as u32,}
const Time: CapabilitySet
Time: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SYS_TIME as u32,}
const TtyConfig: CapabilitySet
TtyConfig: CapabilitySet = CapabilitySet{bits: 1 << capability::CAP_SYS_TTY_CONFIG as u32,}
const fn empty() -> CapabilitySet
Returns an empty set of flags.
fn all() -> CapabilitySet
Returns the set containing all flags.
const fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
fn from_bits(bits: u32) -> Option<CapabilitySet>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u32) -> CapabilitySet
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: CapabilitySet) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: CapabilitySet) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: CapabilitySet)
Inserts the specified flags in-place.
fn remove(&mut self, other: CapabilitySet)
Removes the specified flags in-place.
fn toggle(&mut self, other: CapabilitySet)
Toggles the specified flags in-place.
impl CapabilitySet
[src]
fn get() -> (CapabilitySet, CapabilitySet, CapabilitySet)
fn set(
permitted: CapabilitySet,
inheritable: CapabilitySet,
effective: CapabilitySet
)
permitted: CapabilitySet,
inheritable: CapabilitySet,
effective: CapabilitySet
)
Trait Implementations
impl Copy for CapabilitySet
impl PartialEq for CapabilitySet
fn eq(&self, __arg_0: &CapabilitySet) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CapabilitySet) -> bool
This method tests for !=
.
impl Eq for CapabilitySet
impl Clone for CapabilitySet
fn clone(&self) -> CapabilitySet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialOrd for CapabilitySet
fn partial_cmp(&self, __arg_0: &CapabilitySet) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &CapabilitySet) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &CapabilitySet) -> 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: &CapabilitySet) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &CapabilitySet) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for CapabilitySet
fn cmp(&self, __arg_0: &CapabilitySet) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Hash for CapabilitySet
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
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for CapabilitySet
impl BitOr for CapabilitySet
type Output = CapabilitySet
The resulting type after applying the |
operator
fn bitor(self, other: CapabilitySet) -> CapabilitySet
Returns the union of the two sets of flags.
impl BitOrAssign for CapabilitySet
fn bitor_assign(&mut self, other: CapabilitySet)
Adds the set of flags.
impl BitXor for CapabilitySet
type Output = CapabilitySet
The resulting type after applying the ^
operator
fn bitxor(self, other: CapabilitySet) -> CapabilitySet
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for CapabilitySet
fn bitxor_assign(&mut self, other: CapabilitySet)
Toggles the set of flags.
impl BitAnd for CapabilitySet
type Output = CapabilitySet
The resulting type after applying the &
operator
fn bitand(self, other: CapabilitySet) -> CapabilitySet
Returns the intersection between the two sets of flags.
impl BitAndAssign for CapabilitySet
fn bitand_assign(&mut self, other: CapabilitySet)
Disables all flags disabled in the set.
impl Sub for CapabilitySet
type Output = CapabilitySet
The resulting type after applying the -
operator
fn sub(self, other: CapabilitySet) -> CapabilitySet
Returns the set difference of the two sets of flags.
impl SubAssign for CapabilitySet
fn sub_assign(&mut self, other: CapabilitySet)
Disables all flags enabled in the set.
impl Not for CapabilitySet
type Output = CapabilitySet
The resulting type after applying the !
operator
fn not(self) -> CapabilitySet
Returns the complement of this set of flags.
impl Extend<CapabilitySet> for CapabilitySet
fn extend<T: IntoIterator<Item = CapabilitySet>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<CapabilitySet> for CapabilitySet
fn from_iter<T: IntoIterator<Item = CapabilitySet>>(
iterator: T
) -> CapabilitySet
iterator: T
) -> CapabilitySet
Creates a value from an iterator. Read more