#[non_exhaustive]pub enum Launchable {
DesktopId(String),
Service(String),
Url(Url),
CockpitManifest(String),
}Expand description
Indicates possible methods to launch the application. See <launchable/>.
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.
DesktopId(String)
The application can be launched via a desktop file. See Desktop File ID.
Service(String)
The software can be started, stopped and monitored by the OS “init” such as systemd.
Url(Url)
The application is a website viewed through a browser.
CockpitManifest(String)
The software can be launched from the menus of the Cockpit admin interface.
Trait Implementations§
Source§impl Clone for Launchable
impl Clone for Launchable
Source§fn clone(&self) -> Launchable
fn clone(&self) -> Launchable
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 Launchable
impl Debug for Launchable
Source§impl<'de> Deserialize<'de> for Launchable
impl<'de> Deserialize<'de> for Launchable
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 Launchable
impl PartialEq for Launchable
Source§impl Serialize for Launchable
impl Serialize for Launchable
Source§impl TryFrom<&Element> for Launchable
impl TryFrom<&Element> for Launchable
impl StructuralPartialEq for Launchable
Auto Trait Implementations§
impl Freeze for Launchable
impl RefUnwindSafe for Launchable
impl Send for Launchable
impl Sync for Launchable
impl Unpin for Launchable
impl UnwindSafe for Launchable
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