#[repr(C)]
pub enum NameFlag {
AllowReplacement,
ReplaceExisting,
DoNotQueue,
}
Expand description
Flags to use for Connection::register_name.
More than one flag can be specified, if so just add their values.
Variants
AllowReplacement
Allow another service to become the primary owner if requested
ReplaceExisting
Request to replace the current primary owner
DoNotQueue
If we can not become the primary owner do not place us in the queue
Implementations
sourceimpl DBusNameFlag
impl DBusNameFlag
Trait Implementations
sourceimpl Clone for DBusNameFlag
impl Clone for DBusNameFlag
sourcefn clone(&self) -> DBusNameFlag
fn clone(&self) -> DBusNameFlag
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 moresourceimpl Debug for DBusNameFlag
impl Debug for DBusNameFlag
sourceimpl Ord for DBusNameFlag
impl Ord for DBusNameFlag
sourcefn cmp(&self, other: &DBusNameFlag) -> Ordering
fn cmp(&self, other: &DBusNameFlag) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<DBusNameFlag> for DBusNameFlag
impl PartialEq<DBusNameFlag> for DBusNameFlag
sourcefn eq(&self, other: &DBusNameFlag) -> bool
fn eq(&self, other: &DBusNameFlag) -> bool
sourceimpl PartialOrd<DBusNameFlag> for DBusNameFlag
impl PartialOrd<DBusNameFlag> for DBusNameFlag
sourcefn partial_cmp(&self, other: &DBusNameFlag) -> Option<Ordering>
fn partial_cmp(&self, other: &DBusNameFlag) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DBusNameFlag
impl Eq for DBusNameFlag
impl StructuralEq for DBusNameFlag
impl StructuralPartialEq for DBusNameFlag
Auto Trait Implementations
impl RefUnwindSafe for DBusNameFlag
impl Send for DBusNameFlag
impl Sync for DBusNameFlag
impl Unpin for DBusNameFlag
impl UnwindSafe for DBusNameFlag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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