pub enum NativePlatform {
Macos,
Linux,
Windows,
Ios,
IosSimulator,
Android,
}Expand description
A native platform the euv CLI can build a client for.
Every variant names one deliverable the native builders in
native/tauri produce, and every variant declares the hosts it can be
built on so an incompatible request fails before any heavy work
starts.
Variants§
Macos
The macOS desktop application bundle and disk image.
Linux
The Linux desktop application packages.
Windows
The Windows desktop application packages.
Ios
The iOS device application archive.
IosSimulator
The iOS simulator application bundle.
Android
The Android application package.
Implementations§
Source§impl NativePlatform
Inherent implementation of NativePlatform.
impl NativePlatform
Inherent implementation of NativePlatform.
Sourcepub fn platform_name(self) -> &'static str
pub fn platform_name(self) -> &'static str
Returns the platform name the native builders use on the command line and in their artifact directories.
§Returns
&'static str- The platform name.
Sourcepub fn required_host(self) -> &'static str
pub fn required_host(self) -> &'static str
Returns the host operating system this platform must be built on.
The Android builder runs on macOS and Linux; the desktop and Apple builders each require their own host.
§Returns
&'static str- The required host identifier.
Trait Implementations§
Source§impl Clone for NativePlatform
impl Clone for NativePlatform
impl Copy for NativePlatform
Source§impl Debug for NativePlatform
impl Debug for NativePlatform
impl Eq for NativePlatform
Source§impl PartialEq for NativePlatform
impl PartialEq for NativePlatform
impl StructuralPartialEq for NativePlatform
Source§impl ValueEnum for NativePlatform
impl ValueEnum for NativePlatform
Auto Trait Implementations§
impl Forget for NativePlatform
impl Freeze for NativePlatform
impl Move for NativePlatform
impl RefUnwindSafe for NativePlatform
impl Send for NativePlatform
impl Sync for NativePlatform
impl Unpin for NativePlatform
impl UnsafeUnpin for NativePlatform
impl UnwindSafe for NativePlatform
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.