pub enum DesktopType {
Application,
Link,
Directory,
Unknown,
}
Expand description
This specification defines 3 types of desktop entries:
- Application (type 1),
- Link (type 2)
- Directory (type 3)
To allow the addition of new types in the future, implementations should ignore desktop entries with an “unknown” type.
Variants§
Application
A program
Link
A website
Directory
A file system directory
Unknown
Ignore ‘Unknown’ type in your program, it really just means it is anything other than the above known types
Implementations§
Source§impl DesktopType
impl DesktopType
Sourcepub fn from_string(dt: String) -> DesktopType
pub fn from_string(dt: String) -> DesktopType
Convert a String
into a DesktopType
Sourcepub fn to_string(dt: DesktopType) -> String
pub fn to_string(dt: DesktopType) -> String
Convert a DesktopType
into a String
Trait Implementations§
Source§impl Clone for DesktopType
impl Clone for DesktopType
Source§fn clone(&self) -> DesktopType
fn clone(&self) -> DesktopType
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 DesktopType
impl Debug for DesktopType
Source§impl Display for DesktopType
impl Display for DesktopType
impl Copy for DesktopType
Auto Trait Implementations§
impl Freeze for DesktopType
impl RefUnwindSafe for DesktopType
impl Send for DesktopType
impl Sync for DesktopType
impl Unpin for DesktopType
impl UnwindSafe for DesktopType
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