pub enum OperatingSystem {
Unknown,
Linux,
Windows,
MacOS,
BSD,
}Expand description
Operating System that the binary is compiled for.
Variants§
Unknown
Unknown operating system. This is used when the operating system is not known for example, for WASM, where the OS is not relevant.
Linux
Linux operating system.
Windows
Windows operating system.
MacOS
MacOS operating system.
BSD
BSD operating system.
Trait Implementations§
Source§impl Clone for OperatingSystem
impl Clone for OperatingSystem
Source§fn clone(&self) -> OperatingSystem
fn clone(&self) -> OperatingSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OperatingSystem
Source§impl Debug for OperatingSystem
impl Debug for OperatingSystem
Source§impl Default for OperatingSystem
impl Default for OperatingSystem
Source§fn default() -> OperatingSystem
fn default() -> OperatingSystem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OperatingSystem
impl<'de> Deserialize<'de> for OperatingSystem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OperatingSystem
Source§impl Ord for OperatingSystem
impl Ord for OperatingSystem
Source§fn cmp(&self, other: &OperatingSystem) -> Ordering
fn cmp(&self, other: &OperatingSystem) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OperatingSystem
impl PartialEq for OperatingSystem
Source§impl PartialOrd for OperatingSystem
impl PartialOrd for OperatingSystem
Source§impl Serialize for OperatingSystem
impl Serialize for OperatingSystem
impl StructuralPartialEq for OperatingSystem
Auto Trait Implementations§
impl Freeze for OperatingSystem
impl RefUnwindSafe for OperatingSystem
impl Send for OperatingSystem
impl Sync for OperatingSystem
impl Unpin for OperatingSystem
impl UnsafeUnpin for OperatingSystem
impl UnwindSafe for OperatingSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more