Enum dpdk_unix::android_linux::capabilities::Capability[][src]

#[repr(u8)]
pub enum Capability { AuditControl, AuditRead, AuditWrite, BlockSuspend, Chown, DiscretionaryAccessControlBypass, DiscretionaryAccessControlFileReadBypass, FileOwnerBypass, FileSetId, LockMemory, IpcOwner, Kill, Lease, Immutable, MandatoryAccessControlBypass, MandatoryAccessControlOverride, MakeNodes, SystemAdministration, NetworkAdministration, BindPortsBelow1024, NetRaw, SetUid, SetGid, SetFileCapabilities, SetProcessCapabilities, RebootAndKexecLoad, Chroot, KernelModule, Nice, ProcessAccounting, PTrace, RawIO, Resource, Time, TtyConfig, Syslog, WakeAlarm, }

Linux Security Capabilities.

Variants

Methods

impl Capability
[src]

Clears all ambient capabilities from the current process.

Ensures the given capabilities are dropped from the current process.

Tries to drop each capability separately, ie not all or nothing.

Does the current process have this capability?

Returns None if this capability isn't recognised by the Linux kernel.

Returns Err if a lack-of-permssions error occurred.

Trait Implementations

impl Debug for Capability
[src]

Formats the value using the given formatter. Read more

impl Copy for Capability
[src]

impl Clone for Capability
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Capability
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Capability
[src]

impl PartialOrd for Capability
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Capability
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for Capability
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Capability

impl Sync for Capability