#[repr(u32)]pub enum SandboxFlags {
DisplayAccess = 1,
SoundAccess = 2,
GpuAccess = 4,
SessionBusAccess = 8,
AccessibilityBusAccess = 16,
}
Expand description
A bitmask representing the “permissions” of a newly created sandbox.
Variants§
DisplayAccess = 1
Share the display access (X11, Wayland) with the caller.
SoundAccess = 2
Share the sound access (PulseAudio) with the caller.
GpuAccess = 4
Share the gpu access with the caller.
SessionBusAccess = 8
Allow sandbox access to (filtered) session bus.
AccessibilityBusAccess = 16
Allow sandbox access to accessibility bus.
Trait Implementations§
Source§impl BitAnd for SandboxFlags
impl BitAnd for SandboxFlags
Source§impl BitFlag for SandboxFlags
impl BitFlag for SandboxFlags
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 SandboxFlags
impl BitOr for SandboxFlags
Source§impl BitXor for SandboxFlags
impl BitXor for SandboxFlags
Source§impl Clone for SandboxFlags
impl Clone for SandboxFlags
Source§fn clone(&self) -> SandboxFlags
fn clone(&self) -> SandboxFlags
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 SandboxFlags
impl Debug for SandboxFlags
Source§impl<'de> Deserialize<'de> for SandboxFlags
impl<'de> Deserialize<'de> for SandboxFlags
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 SandboxFlags
impl Not for SandboxFlags
Source§impl PartialEq for SandboxFlags
impl PartialEq for SandboxFlags
Source§impl RawBitFlags for SandboxFlags
impl RawBitFlags for SandboxFlags
Source§const EMPTY: Self::Numeric = {transmute(0x00000000): <flatpak::SandboxFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <flatpak::SandboxFlags as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
Source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <flatpak::SandboxFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <flatpak::SandboxFlags as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
Source§const ALL_BITS: Self::Numeric = {transmute(0x0000001f): <flatpak::SandboxFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x0000001f): <flatpak::SandboxFlags as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
Source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<SandboxFlags>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<SandboxFlags>"
The name of the type for debug formatting purposes. Read more
Source§impl Serialize for SandboxFlags
impl Serialize for SandboxFlags
Source§impl Type for SandboxFlags
impl Type for SandboxFlags
impl Copy for SandboxFlags
impl Eq for SandboxFlags
impl StructuralPartialEq for SandboxFlags
Auto Trait Implementations§
impl Freeze for SandboxFlags
impl RefUnwindSafe for SandboxFlags
impl Send for SandboxFlags
impl Sync for SandboxFlags
impl Unpin for SandboxFlags
impl UnwindSafe for SandboxFlags
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.