Enum platforms::target::OS[][src]

pub enum OS {
    Android,
    Bitrig,
    CloudABI,
    Dragonfly,
    Emscripten,
    FreeBSD,
    Fuchsia,
    Haiku,
    iOS,
    Linux,
    MacOS,
    NetBSD,
    OpenBSD,
    Redox,
    Solaris,
    Windows,
    Unknown,
}

target_os: Operating system of the target. This value is closely related to the second and third element of the platform target triple, though it is not identical.

Variants

android: Google's Android mobile operating system

bitrig: OpenBSD-based operating system

cloudabi: Nuxi CloudABI runtime environment

dragonfly: DragonflyBSD

emscripten: The emscripten JavaScript transpiler

freebsd: The FreeBSD operating system

fuchsia: Google's next-gen Rust OS

haiku: Haiku, an open source BeOS clone

ios: Apple's iOS mobile operating system

linux: Linux

macos: Apple's Mac OS X

netbsd: The NetBSD operating system

openbsd: The OpenBSD operating system

redox: Redox, a Unix-like OS written in Rust

solaris: Oracle's (formerly Sun) Solaris operating system

windows: Microsoft's Windows operating system

Operating systems we don't know about

Methods

impl OS
[src]

String representing this target OS which matches #[cfg(target_os)]

Trait Implementations

impl Copy for OS
[src]

impl Clone for OS
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for OS
[src]

Formats the value using the given formatter. Read more

impl Eq for OS
[src]

impl Hash for OS
[src]

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

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

impl PartialEq for OS
[src]

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

This method tests for !=.

impl PartialOrd for OS
[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 OS
[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 FromStr for OS
[src]

The associated error which can be returned from parsing.

Create a new Env from the given string

Auto Trait Implementations

impl Send for OS

impl Sync for OS