logo
#[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

The resulting type after applying the & operator.

Performs the & operation. Read more

Create a BitFlags with no flags set (in other words, with a value of 0). Read more

Create a BitFlags with all flags set. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The underlying integer type.

A value with no bits set.

The value used by the Default implementation. Equivalent to EMPTY, unless customized. Read more

A value with all flag bits set.

The name of the type for debug formatting purposes. Read more

Return the bits as a number type.

Serialize this value into the given Serde serializer. Read more

Get the signature for the implementing type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

A DeserializeSeed implementation for this type.

Get a deserializer compatible with this signature.

Get the signature for the implementing type. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.