Enum ashpd::desktop::dynamic_launcher::LauncherType
source · #[repr(u32)]pub enum LauncherType {
Application = 1,
WebApplication = 2,
}
Expand description
The type of the launcher.
Variants§
Application = 1
A launcher that represents an application
WebApplication = 2
A launcher that represents a web application
Trait Implementations§
source§impl BitAnd for LauncherType
impl BitAnd for LauncherType
source§impl BitFlag for LauncherType
impl BitFlag for LauncherType
source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags
with no flags set (in other words, with a value of 0). Read moresource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags
if the raw value provided does not contain
any illegal flags. Read moresource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags
from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moresource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags
unsafely, without checking if the bits form
a valid bit pattern for the type. Read moresource§impl BitOr for LauncherType
impl BitOr for LauncherType
source§impl BitXor for LauncherType
impl BitXor for LauncherType
source§impl Clone for LauncherType
impl Clone for LauncherType
source§fn clone(&self) -> LauncherType
fn clone(&self) -> LauncherType
Returns a copy 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 LauncherType
impl Debug for LauncherType
source§impl Default for LauncherType
impl Default for LauncherType
source§fn default() -> LauncherType
fn default() -> LauncherType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LauncherType
impl<'de> Deserialize<'de> for LauncherType
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 Not for LauncherType
impl Not for LauncherType
source§impl PartialEq for LauncherType
impl PartialEq for LauncherType
source§impl RawBitFlags for LauncherType
impl RawBitFlags for LauncherType
source§const EMPTY: Self::Numeric = {transmute(0x00000000): <desktop::dynamic_launcher::LauncherType as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <desktop::dynamic_launcher::LauncherType as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <desktop::dynamic_launcher::LauncherType as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <desktop::dynamic_launcher::LauncherType as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
source§const ALL_BITS: Self::Numeric = {transmute(0x00000003): <desktop::dynamic_launcher::LauncherType as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x00000003): <desktop::dynamic_launcher::LauncherType as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<LauncherType>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<LauncherType>"
The name of the type for debug formatting purposes. Read more
source§impl Serialize for LauncherType
impl Serialize for LauncherType
source§impl Type for LauncherType
impl Type for LauncherType
impl Copy for LauncherType
impl Eq for LauncherType
impl StructuralPartialEq for LauncherType
Auto Trait Implementations§
impl Freeze for LauncherType
impl RefUnwindSafe for LauncherType
impl Send for LauncherType
impl Sync for LauncherType
impl Unpin for LauncherType
impl UnwindSafe for LauncherType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.