#[repr(u32)]pub enum CheckAuthorizationFlags {
AllowUserInteraction = 1,
}
Expand description
Flags used in the CheckAuthorization() method.
Variants§
AllowUserInteraction = 1
If the Subject can obtain the authorization through authentication, and an authentication agent is available, then attempt to do so. Note, this means that the CheckAuthorization() method will block while the user is being asked to authenticate.
Trait Implementations§
source§impl BitAnd for CheckAuthorizationFlags
impl BitAnd for CheckAuthorizationFlags
source§impl BitFlag for CheckAuthorizationFlags
impl BitFlag for CheckAuthorizationFlags
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 CheckAuthorizationFlags
impl BitOr for CheckAuthorizationFlags
source§impl BitXor for CheckAuthorizationFlags
impl BitXor for CheckAuthorizationFlags
source§impl Clone for CheckAuthorizationFlags
impl Clone for CheckAuthorizationFlags
source§fn clone(&self) -> CheckAuthorizationFlags
fn clone(&self) -> CheckAuthorizationFlags
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 CheckAuthorizationFlags
impl Debug for CheckAuthorizationFlags
source§impl<'de> Deserialize<'de> for CheckAuthorizationFlags
impl<'de> Deserialize<'de> for CheckAuthorizationFlags
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 CheckAuthorizationFlags
impl Not for CheckAuthorizationFlags
source§impl PartialEq for CheckAuthorizationFlags
impl PartialEq for CheckAuthorizationFlags
source§fn eq(&self, other: &CheckAuthorizationFlags) -> bool
fn eq(&self, other: &CheckAuthorizationFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RawBitFlags for CheckAuthorizationFlags
impl RawBitFlags for CheckAuthorizationFlags
source§const EMPTY: Self::Numeric = {transmute(0x00000000): <policykit1::CheckAuthorizationFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <policykit1::CheckAuthorizationFlags as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <policykit1::CheckAuthorizationFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <policykit1::CheckAuthorizationFlags as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
source§const ALL_BITS: Self::Numeric = {transmute(0x00000001): <policykit1::CheckAuthorizationFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x00000001): <policykit1::CheckAuthorizationFlags as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<CheckAuthorizationFlags>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<CheckAuthorizationFlags>"
The name of the type for debug formatting purposes. Read more
source§impl Serialize for CheckAuthorizationFlags
impl Serialize for CheckAuthorizationFlags
source§impl Type for CheckAuthorizationFlags
impl Type for CheckAuthorizationFlags
impl Copy for CheckAuthorizationFlags
impl Eq for CheckAuthorizationFlags
impl StructuralPartialEq for CheckAuthorizationFlags
Auto Trait Implementations§
impl RefUnwindSafe for CheckAuthorizationFlags
impl Send for CheckAuthorizationFlags
impl Sync for CheckAuthorizationFlags
impl Unpin for CheckAuthorizationFlags
impl UnwindSafe for CheckAuthorizationFlags
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
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more