Enum ashpd::desktop::inhibit::InhibitFlags
source · #[repr(u32)]pub enum InhibitFlags {
Logout = 1,
UserSwitch = 2,
Suspend = 4,
Idle = 8,
}
Expand description
The actions to inhibit that can end the user’s session
Variants§
Trait Implementations§
source§impl BitAnd for InhibitFlags
impl BitAnd for InhibitFlags
source§impl BitFlag for InhibitFlags
impl BitFlag for InhibitFlags
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 InhibitFlags
impl BitOr for InhibitFlags
source§impl BitXor for InhibitFlags
impl BitXor for InhibitFlags
source§impl Clone for InhibitFlags
impl Clone for InhibitFlags
source§fn clone(&self) -> InhibitFlags
fn clone(&self) -> InhibitFlags
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 InhibitFlags
impl Debug for InhibitFlags
source§impl Not for InhibitFlags
impl Not for InhibitFlags
source§impl PartialEq for InhibitFlags
impl PartialEq for InhibitFlags
source§impl RawBitFlags for InhibitFlags
impl RawBitFlags for InhibitFlags
source§const EMPTY: Self::Numeric = {transmute(0x00000000): <desktop::inhibit::InhibitFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <desktop::inhibit::InhibitFlags as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <desktop::inhibit::InhibitFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <desktop::inhibit::InhibitFlags as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
source§const ALL_BITS: Self::Numeric = {transmute(0x0000000f): <desktop::inhibit::InhibitFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x0000000f): <desktop::inhibit::InhibitFlags as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<InhibitFlags>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<InhibitFlags>"
The name of the type for debug formatting purposes. Read more
source§impl Serialize for InhibitFlags
impl Serialize for InhibitFlags
source§impl Type for InhibitFlags
impl Type for InhibitFlags
impl Copy for InhibitFlags
impl Eq for InhibitFlags
impl StructuralPartialEq for InhibitFlags
Auto Trait Implementations§
impl Freeze for InhibitFlags
impl RefUnwindSafe for InhibitFlags
impl Send for InhibitFlags
impl Sync for InhibitFlags
impl Unpin for InhibitFlags
impl UnwindSafe for InhibitFlags
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<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