pub enum OperatingSystem {
WINDOWS,
LINUX,
OSX,
UNKNOWN,
}Expand description
Supported operating systems.
Variants§
Implementations§
Source§impl OperatingSystem
impl OperatingSystem
Sourcepub fn get_vanilla_os(&self) -> SystemResult<&'static str>
pub fn get_vanilla_os(&self) -> SystemResult<&'static str>
Returns the OS name as used in Mojang’s version manifest
("windows", "linux", "osx").
Sourcepub fn get_adoptium_name(&self) -> SystemResult<&'static str>
pub fn get_adoptium_name(&self) -> SystemResult<&'static str>
Returns the OS name as used by the Adoptium (Temurin) API
("windows", "linux", "mac").
Sourcepub fn get_graal_name(&self) -> SystemResult<&'static str>
pub fn get_graal_name(&self) -> SystemResult<&'static str>
Returns the OS name as used by the Oracle GraalVM download URLs
("windows", "linux", "macos").
Sourcepub fn get_zulu_name(&self) -> SystemResult<&'static str>
pub fn get_zulu_name(&self) -> SystemResult<&'static str>
Returns the OS name as used by the Azul / Foojay APIs (Zulu, Liberica)
("windows", "linux", "macos").
Sourcepub fn get_zulu_ext(&self) -> SystemResult<&'static str>
pub fn get_zulu_ext(&self) -> SystemResult<&'static str>
Returns the archive extension Zulu publishes for this OS
("zip" on Windows, "tar.gz" on Linux/macOS).
Sourcepub fn get_archive_type(&self) -> SystemResult<&'static str>
pub fn get_archive_type(&self) -> SystemResult<&'static str>
Returns the archive extension used by every supported JRE distribution
("zip" on Windows, "tar.gz" on Linux/macOS).
Trait Implementations§
Source§impl Debug for OperatingSystem
impl Debug for OperatingSystem
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
Source§impl Display for OperatingSystem
impl Display for OperatingSystem
Source§impl Hash for OperatingSystem
impl Hash for OperatingSystem
Source§impl PartialEq for OperatingSystem
impl PartialEq for OperatingSystem
Source§fn eq(&self, other: &OperatingSystem) -> bool
fn eq(&self, other: &OperatingSystem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.