pub enum WindowsVersion {
Windows10,
Windows11,
WindowsServer2016,
WindowsServer2019,
WindowsServer2022,
Unknown,
}Expand description
Windows version detection
Variants§
Trait Implementations§
Source§impl Clone for WindowsVersion
impl Clone for WindowsVersion
Source§fn clone(&self) -> WindowsVersion
fn clone(&self) -> WindowsVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowsVersion
impl Debug for WindowsVersion
Source§impl<'de> Deserialize<'de> for WindowsVersion
impl<'de> Deserialize<'de> for WindowsVersion
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 PartialEq for WindowsVersion
impl PartialEq for WindowsVersion
Source§impl Serialize for WindowsVersion
impl Serialize for WindowsVersion
impl Eq for WindowsVersion
impl StructuralPartialEq for WindowsVersion
Auto Trait Implementations§
impl Freeze for WindowsVersion
impl RefUnwindSafe for WindowsVersion
impl Send for WindowsVersion
impl Sync for WindowsVersion
impl Unpin for WindowsVersion
impl UnwindSafe for WindowsVersion
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