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
sourceimpl 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>
The resulting type after applying the &
operator.
sourceimpl BitFlag for RequestNameFlags
impl BitFlag for RequestNameFlags
sourceimpl 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>
The resulting type after applying the |
operator.
sourceimpl 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>
The resulting type after applying the ^
operator.
sourceimpl Clone for RequestNameFlags
impl Clone for RequestNameFlags
sourcefn clone(&self) -> RequestNameFlags
fn clone(&self) -> RequestNameFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RequestNameFlags
impl Debug for RequestNameFlags
sourceimpl<'de> Deserialize<'de> for RequestNameFlags
impl<'de> Deserialize<'de> for RequestNameFlags
sourcefn 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
sourceimpl Not for RequestNameFlags
impl Not for RequestNameFlags
type Output = BitFlags<RequestNameFlags, <RequestNameFlags as RawBitFlags>::Numeric>
type Output = BitFlags<RequestNameFlags, <RequestNameFlags as RawBitFlags>::Numeric>
The resulting type after applying the !
operator.
sourceimpl PartialEq<RequestNameFlags> for RequestNameFlags
impl PartialEq<RequestNameFlags> for RequestNameFlags
sourceimpl RawBitFlags for RequestNameFlags
impl RawBitFlags for RequestNameFlags
sourceconst DEFAULT: Self::Numeric = {transmute(0x00000000): ::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): ::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless customized. Read more
sourceconst ALL_BITS: Self::Numeric = {transmute(0x00000007): ::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x00000007): ::Numeric}
A value with all flag bits set.
sourceconst BITFLAGS_TYPE_NAME: &'static str = "BitFlags"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags"
The name of the type for debug formatting purposes. Read more
sourceimpl Serialize for RequestNameFlags
impl Serialize for RequestNameFlags
sourceimpl Type for RequestNameFlags
impl Type for RequestNameFlags
impl Copy for RequestNameFlags
impl StructuralPartialEq for RequestNameFlags
Auto Trait Implementations
impl RefUnwindSafe for RequestNameFlags
impl Send for RequestNameFlags
impl Sync for RequestNameFlags
impl Unpin for RequestNameFlags
impl UnwindSafe for RequestNameFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'de, T> DynamicDeserialize<'de> for T where
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for T where
T: Type + Deserialize<'de> + ?Sized,
type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
sourcefn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error> where
S: TryInto<Signature<'de>>,
<S as TryInto<Signature<'de>>>::Error: Into<Error>,
fn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error> where
S: TryInto<Signature<'de>>,
<S as TryInto<Signature<'de>>>::Error: Into<Error>,
Get a deserializer compatible with this signature.
sourceimpl<T> DynamicType for T where
T: Type + ?Sized,
impl<T> DynamicType for T where
T: Type + ?Sized,
sourcefn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more