#[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::dbus::RequestNameFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <fdo::dbus::RequestNameFlags as enumflags2::_internal::RawBitFlags>::Numeric}
Source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <fdo::dbus::RequestNameFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <fdo::dbus::RequestNameFlags as enumflags2::_internal::RawBitFlags>::Numeric}
Source§const ALL_BITS: Self::Numeric = {transmute(0x00000007): <fdo::dbus::RequestNameFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x00000007): <fdo::dbus::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
)