pub enum Platform {
Windows,
MacOS,
Linux,
FreeBSD,
OpenBSD,
NetBSD,
Android,
IOS,
Unknown,
Other(String),
}Expand description
Operating system / platform on which the application is running.
Variants§
Windows
Microsoft Windows.
MacOS
Apple macOS.
Linux
Linux.
FreeBSD
FreeBSD.
OpenBSD
OpenBSD.
NetBSD
NetBSD.
Android
Google Android.
IOS
Apple iOS.
Unknown
Platform could not be determined.
Other(String)
Some other platform, identified by the contained name string.
Implementations§
Trait Implementations§
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnsafeUnpin for Platform
impl UnwindSafe for Platform
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