Enum zbus::fdo::RequestNameFlags
source · #[repr(u32)]
pub enum RequestNameFlags {
AllowReplacement,
ReplaceExisting,
DoNotQueue,
}Expand description
The flags used by the bus request_name method.
Variants§
AllowReplacement
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
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
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<RequestNameFlags> for RequestNameFlags
impl BitAnd<RequestNameFlags> for RequestNameFlags
§type Output = BitFlags<RequestNameFlags, <RequestNameFlags as RawBitFlags>::Numeric>
type Output = BitFlags<RequestNameFlags, <RequestNameFlags as RawBitFlags>::Numeric>
& operator.source§impl BitFlag for RequestNameFlags
impl BitFlag for RequestNameFlags
source§impl BitOr<RequestNameFlags> for RequestNameFlags
impl BitOr<RequestNameFlags> for RequestNameFlags
§type Output = BitFlags<RequestNameFlags, <RequestNameFlags as RawBitFlags>::Numeric>
type Output = BitFlags<RequestNameFlags, <RequestNameFlags as RawBitFlags>::Numeric>
| operator.source§impl BitXor<RequestNameFlags> for RequestNameFlags
impl BitXor<RequestNameFlags> for RequestNameFlags
§type Output = BitFlags<RequestNameFlags, <RequestNameFlags as RawBitFlags>::Numeric>
type Output = BitFlags<RequestNameFlags, <RequestNameFlags as RawBitFlags>::Numeric>
^ operator.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
§type Output = BitFlags<RequestNameFlags, <RequestNameFlags as RawBitFlags>::Numeric>
type Output = BitFlags<RequestNameFlags, <RequestNameFlags as RawBitFlags>::Numeric>
! operator.source§impl PartialEq<RequestNameFlags> for RequestNameFlags
impl PartialEq<RequestNameFlags> for RequestNameFlags
source§fn eq(&self, other: &RequestNameFlags) -> bool
fn eq(&self, other: &RequestNameFlags) -> bool
self and other values to be equal, and is used
by ==.