Enum zbus::fdo::RequestNameFlags
source · #[repr(u32)]pub enum RequestNameFlags {
AllowReplacement = 1,
ReplaceExisting = 2,
DoNotQueue = 4,
}
Expand description
The flags used by the bus request_name
method.
Variants§
AllowReplacement = 1
If an application A specifies this flag and succeeds in becoming the owner of the name, and
another application B later calls request_name
with the ReplaceExisting
flag, then
application A will lose ownership and receive a org.freedesktop.DBus.NameLost
signal, and
application B will become the new owner. If AllowReplacement
is not specified by
application A, or ReplaceExisting
is not specified by application B, then application B
will not replace application A as the owner.
ReplaceExisting = 2
Try to replace the current owner if there is one. If this flag is not set the application
will only become the owner of the name if there is no current owner. If this flag is set,
the application will replace the current owner if the current owner specified
AllowReplacement
.
DoNotQueue = 4
Without this flag, if an application requests a name that is already owned, the application will be placed in a queue to own the name when the current owner gives it up. If this flag is given, the application will not be placed in the queue, the request for the name will simply fail. This flag also affects behavior when an application is replaced as name owner; by default the application moves back into the waiting queue, unless this flag was provided when the application became the name owner.
Trait Implementations§
source§impl BitAnd for RequestNameFlags
impl BitAnd for RequestNameFlags
source§impl BitFlag for RequestNameFlags
impl BitFlag for RequestNameFlags
source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
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>>
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>
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>
BitFlags
unsafely, without checking if the bits form
a valid bit pattern for the type. Read moresource§impl BitOr for RequestNameFlags
impl BitOr for RequestNameFlags
source§impl BitXor for RequestNameFlags
impl BitXor for RequestNameFlags
source§impl Clone for RequestNameFlags
impl Clone for RequestNameFlags
source§fn clone(&self) -> RequestNameFlags
fn clone(&self) -> RequestNameFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RequestNameFlags
impl Debug for RequestNameFlags
source§impl<'de> Deserialize<'de> for RequestNameFlags
impl<'de> Deserialize<'de> for RequestNameFlags
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>,
source§impl Not for RequestNameFlags
impl Not for RequestNameFlags
source§impl PartialEq for RequestNameFlags
impl PartialEq for RequestNameFlags
source§impl RawBitFlags for RequestNameFlags
impl RawBitFlags for RequestNameFlags
source§const EMPTY: Self::Numeric = {transmute(0x00000000): <fdo::RequestNameFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <fdo::RequestNameFlags as enumflags2::_internal::RawBitFlags>::Numeric}
source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <fdo::RequestNameFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <fdo::RequestNameFlags as enumflags2::_internal::RawBitFlags>::Numeric}
source§const ALL_BITS: Self::Numeric = {transmute(0x00000007): <fdo::RequestNameFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x00000007): <fdo::RequestNameFlags as enumflags2::_internal::RawBitFlags>::Numeric}
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<RequestNameFlags>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<RequestNameFlags>"
source§impl Serialize for RequestNameFlags
impl Serialize for RequestNameFlags
source§impl Type for RequestNameFlags
impl Type for RequestNameFlags
impl Copy for RequestNameFlags
impl Eq for RequestNameFlags
impl StructuralPartialEq for RequestNameFlags
Auto Trait Implementations§
impl Freeze for RequestNameFlags
impl RefUnwindSafe for RequestNameFlags
impl Send for RequestNameFlags
impl Sync for RequestNameFlags
impl Unpin for RequestNameFlags
impl UnwindSafe for RequestNameFlags
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)