Enum libseccomp::ScmpArch[][src]

pub enum ScmpArch {
Show variants Native, X86, X8664, X32, Arm, Aarch64, Mips, Mips64, Mips64N32, Mipsel, Mipsel64, Mipsel64N32, Ppc, Ppc64, Ppc64Le, S390, S390X, Parisc, Parisc64, Riscv64,
}

ScmpArch represents a CPU architecture. Seccomp can restrict syscalls on a per-architecture basis.

Variants

Native

The native architecture token

X86

The x86 (32-bit) architecture token

X8664

The x86-64 (64-bit) architecture token

X32

The x32 (32-bit x86_64) architecture token

Arm

The ARM architecture token

Aarch64

The AARCH64 architecture token

Mips

The MIPS architecture token

Mips64

The MIPS (64-bit) architecture token

Mips64N32

The MIPS64N32 architecture token

Mipsel

The MIPSEL architecture token

Mipsel64

The MIPSEL (64-bit) architecture token

Mipsel64N32

The MIPSEL64N32 architecture token

Ppc

The PowerPC architecture token

Ppc64

The PowerPC (64-bit) architecture token

Ppc64Le

The PowerPC64LE architecture token

S390

The S390 architecture token

S390X

The S390X architecture token

Parisc

The PA-RISC hppa architecture token

Parisc64

The PA-RISC (64-bit) hppa architecture token

Riscv64

The RISC-V architecture token

Implementations

impl ScmpArch[src]

pub fn to_native(&self) -> u32[src]

Trait Implementations

impl Clone for ScmpArch[src]

impl Copy for ScmpArch[src]

impl Debug for ScmpArch[src]

impl Eq for ScmpArch[src]

impl FromStr for ScmpArch[src]

type Err = SeccompError

The associated error which can be returned from parsing.

impl PartialEq<ScmpArch> for ScmpArch[src]

impl StructuralEq for ScmpArch[src]

impl StructuralPartialEq for ScmpArch[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.