Enum tauri_bundler::bundle::PackageType
source · [−]#[non_exhaustive]
pub enum PackageType {
MacOsBundle,
IosBundle,
WindowsMsi,
Deb,
Rpm,
AppImage,
Dmg,
Updater,
}
Expand description
The type of the package we’re bundling.
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.
MacOsBundle
The macOS application bundle (.app).
IosBundle
The iOS app bundle.
WindowsMsi
The Windows bundle (.msi).
Deb
The Linux Debian package bundle (.deb).
Rpm
The Linux RPM bundle (.rpm).
AppImage
The Linux AppImage bundle (.AppImage).
Dmg
The macOS DMG bundle (.dmg).
Updater
The Updater bundle.
Implementations
sourceimpl PackageType
impl PackageType
sourcepub fn from_short_name(name: &str) -> Option<PackageType>
pub fn from_short_name(name: &str) -> Option<PackageType>
Maps a short name to a PackageType. Possible values are “deb”, “ios”, “msi”, “app”, “rpm”, “appimage”, “dmg”, “updater”.
sourcepub fn short_name(&self) -> &'static str
pub fn short_name(&self) -> &'static str
Gets the short name of this PackageType.
sourcepub fn all() -> &'static [PackageType]
pub fn all() -> &'static [PackageType]
Gets the list of the possible package types.
Trait Implementations
sourceimpl Clone for PackageType
impl Clone for PackageType
sourcefn clone(&self) -> PackageType
fn clone(&self) -> PackageType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PackageType
impl Debug for PackageType
sourceimpl From<BundleType> for PackageType
impl From<BundleType> for PackageType
sourcefn from(bundle: BundleType) -> Self
fn from(bundle: BundleType) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PackageType> for PackageType
impl PartialEq<PackageType> for PackageType
impl Copy for PackageType
impl Eq for PackageType
impl StructuralEq for PackageType
impl StructuralPartialEq for PackageType
Auto Trait Implementations
impl RefUnwindSafe for PackageType
impl Send for PackageType
impl Sync for PackageType
impl Unpin for PackageType
impl UnwindSafe for PackageType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more