#[non_exhaustive]pub enum Kind {
Linux,
Windows,
MacOs,
Android,
Ios,
FreeBsd,
OpenBsd,
NetBsd,
Other,
}Expand description
The operating system family, fixed when the program was compiled.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Linux
Linux (not Android).
Windows
Windows.
MacOs
macOS.
Android
Android.
Ios
iOS and iPadOS.
FreeBsd
FreeBSD.
OpenBsd
OpenBSD.
NetBsd
NetBSD.
Other
Anything else.
Implementations§
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Forget for Kind
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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