Enum wasmer_compiler::OperatingSystem[][src]

#[non_exhaustive]pub enum OperatingSystem {
    Unknown,
    AmdHsa,
    Bitrig,
    Cloudabi,
    Cuda,
    Darwin,
    Dragonfly,
    Emscripten,
    Freebsd,
    Fuchsia,
    Haiku,
    Hermit,
    Illumos,
    Ios,
    L4re,
    Linux,
    MacOSX {
        major: u16,
        minor: u16,
        patch: u16,
    },
    Nebulet,
    Netbsd,
    None_,
    Openbsd,
    Psp,
    Redox,
    Solaris,
    Tvos,
    Uefi,
    VxWorks,
    Wasi,
    Windows,
}

The "operating system" field, which sometimes implies an environment, and sometimes isn't an actual operating system.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
AmdHsa
Bitrig
Cloudabi
Cuda
Darwin
Dragonfly
Emscripten
Freebsd
Fuchsia
Haiku
Hermit
Illumos
Ios
L4re
Linux
MacOSX

Fields of MacOSX

major: u16minor: u16patch: u16
Nebulet
Netbsd
None_
Openbsd
Psp
Redox
Solaris
Tvos
Uefi
VxWorks
Wasi
Windows

Implementations

impl OperatingSystem[src]

pub const fn host() -> OperatingSystem[src]

Return the operating system for the current host.

Trait Implementations

impl Clone for OperatingSystem[src]

impl Copy for OperatingSystem[src]

impl Debug for OperatingSystem[src]

impl Display for OperatingSystem[src]

impl Eq for OperatingSystem[src]

impl FromStr for OperatingSystem[src]

type Err = ()

The associated error which can be returned from parsing.

impl Hash for OperatingSystem[src]

impl PartialEq<OperatingSystem> for OperatingSystem[src]

impl StructuralEq for OperatingSystem[src]

impl StructuralPartialEq for OperatingSystem[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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> ToString for T where
    T: Display + ?Sized
[src]

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.