#[non_exhaustive]
pub enum OS {
Show 28 variants
Android,
Cuda,
Dragonfly,
Emscripten,
Espidf,
FreeBSD,
Fuchsia,
Haiku,
Hermit,
Horizon,
IllumOS,
iOS,
L4re,
Linux,
MacOS,
NetBSD,
None,
OpenBSD,
Psp,
Redox,
Solaris,
SolidAsp3,
TvOS,
Uefi,
Unknown,
VxWorks,
Wasi,
Windows,
}
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
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
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
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
TvOS
tvos
Uefi
uefi
Unknown
unknown
VxWorks
vxworks
: VxWorks is a deterministic, priority-based preemptive RTOS with low latency and minimal jitter
Wasi
wasi
: The WebAssembly System Interface
Windows
windows
: Microsoft’s Windows operating system
Implementations
Trait Implementations
sourceimpl Ord for OS
impl Ord for OS
sourceimpl PartialOrd<OS> for OS
impl PartialOrd<OS> for OS
sourcefn partial_cmp(&self, other: &OS) -> Option<Ordering>
fn partial_cmp(&self, other: &OS) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for OS
impl Eq for OS
impl StructuralEq for OS
impl StructuralPartialEq for OS
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more