#[non_exhaustive]pub enum OS {
Show 36 variants
Aix,
Android,
Cuda,
Dragonfly,
Emscripten,
Espidf,
FreeBSD,
Fuchsia,
Haiku,
Hermit,
Horizon,
Hurd,
IllumOS,
iOS,
L4re,
Linux,
MacOS,
NetBSD,
None,
Nto,
OpenBSD,
Psp,
Redox,
Solaris,
SolidAsp3,
TeeOS,
TvOS,
Uefi,
Unknown,
Vita,
VxWorks,
Wasi,
WatchOS,
Windows,
Xous,
Zkvm,
}
Expand description
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 (Non-exhaustive)§
This enum is marked as non-exhaustive
Aix
aix
Android
android
: Google’s Android mobile operating system
Cuda
cuda
: CUDA parallel computing platform
Dragonfly
dragonfly
: DragonflyBSD
Emscripten
emscripten
: The emscripten JavaScript transpiler
Espidf
espidf
FreeBSD
freebsd
: The FreeBSD operating system
Fuchsia
fuchsia
: Google’s next-gen Rust OS
Haiku
haiku
: Haiku, an open source BeOS clone
Hermit
hermit
: HermitCore is a novel unikernel operating system targeting a scalable and predictable runtime behavior for HPC and cloud environments
Horizon
horizon
Hurd
hurd
IllumOS
illumos
: illumos is a partly free and open-source Unix operating system based on OpenSolaris
iOS
ios
: Apple’s iOS mobile operating system
L4re
l4re
Linux
linux
: Linux
MacOS
macos
: Apple’s Mac OS X
NetBSD
netbsd
: The NetBSD operating system
None
none
Nto
nto
OpenBSD
openbsd
: The OpenBSD operating system
Psp
psp
Redox
redox
: Redox, a Unix-like OS written in Rust
Solaris
solaris
: Oracle’s (formerly Sun) Solaris operating system
SolidAsp3
solid_asp3
TeeOS
teeos
TvOS
tvos
Uefi
uefi
Unknown
unknown
Vita
vita
VxWorks
vxworks
: VxWorks is a deterministic, priority-based preemptive RTOS with low latency and minimal jitter
Wasi
wasi
: The WebAssembly System Interface
WatchOS
watchos
Windows
windows
: Microsoft’s Windows operating system
Xous
xous
Zkvm
zkvm
Implementations§
Trait Implementations§
source§impl Ord for OS
impl Ord for OS
source§impl PartialOrd for OS
impl PartialOrd for OS
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more