pub enum UnitDBusLevel {
System = 0,
UserSession = 1,
Both = 2,
}Variants§
Implementations§
Source§impl UnitDBusLevel
impl UnitDBusLevel
pub fn short(&self) -> &str
pub fn normalize(&self) -> Self
pub fn user_session(&self) -> bool
pub fn as_str(&self) -> &'static str
pub fn label(&self) -> &'static str
pub fn nice_label(&self) -> String
pub fn from_short(suffix: &str) -> Self
pub fn tooltip_info(&self) -> Option<&str>
pub fn value(&self) -> i32
pub fn index(&self) -> u8
Trait Implementations§
Source§impl Clone for UnitDBusLevel
impl Clone for UnitDBusLevel
Source§fn clone(&self) -> UnitDBusLevel
fn clone(&self) -> UnitDBusLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnitDBusLevel
impl Debug for UnitDBusLevel
Source§impl Default for UnitDBusLevel
impl Default for UnitDBusLevel
Source§fn default() -> UnitDBusLevel
fn default() -> UnitDBusLevel
Returns the “default value” for a type. Read more
Source§impl From<&str> for UnitDBusLevel
impl From<&str> for UnitDBusLevel
Source§impl From<UnitDBusLevel> for Value
impl From<UnitDBusLevel> for Value
Source§fn from(v: UnitDBusLevel) -> Self
fn from(v: UnitDBusLevel) -> Self
Converts to this type from the input type.
Source§impl From<u32> for UnitDBusLevel
impl From<u32> for UnitDBusLevel
Source§impl From<u8> for UnitDBusLevel
impl From<u8> for UnitDBusLevel
Source§impl<'a> FromValue<'a> for UnitDBusLevel
impl<'a> FromValue<'a> for UnitDBusLevel
Source§type Checker = GenericValueTypeChecker<UnitDBusLevel>
type Checker = GenericValueTypeChecker<UnitDBusLevel>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl HasParamSpec for UnitDBusLevel
impl HasParamSpec for UnitDBusLevel
type ParamSpec = ParamSpecEnum
Source§type SetValue = UnitDBusLevel
type SetValue = UnitDBusLevel
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, UnitDBusLevel) -> ParamSpecEnumBuilder<'_, UnitDBusLevel>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for UnitDBusLevel
impl Hash for UnitDBusLevel
Source§impl IntoEnumIterator for UnitDBusLevel
impl IntoEnumIterator for UnitDBusLevel
type Iterator = UnitDBusLevelIter
fn iter() -> UnitDBusLevelIter ⓘ
Source§impl Ord for UnitDBusLevel
impl Ord for UnitDBusLevel
Source§fn cmp(&self, other: &UnitDBusLevel) -> Ordering
fn cmp(&self, other: &UnitDBusLevel) -> Ordering
1.21.0 · Source§fn 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
Source§impl PartialEq for UnitDBusLevel
impl PartialEq for UnitDBusLevel
Source§impl PartialOrd for UnitDBusLevel
impl PartialOrd for UnitDBusLevel
Source§impl StaticType for UnitDBusLevel
impl StaticType for UnitDBusLevel
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Source§impl ToValue for UnitDBusLevel
impl ToValue for UnitDBusLevel
Source§impl TryFromGlib<i32> for UnitDBusLevel
impl TryFromGlib<i32> for UnitDBusLevel
Source§impl ValueType for UnitDBusLevel
impl ValueType for UnitDBusLevel
Source§type Type = UnitDBusLevel
type Type = UnitDBusLevel
Type to get the
Type from. Read moreimpl Copy for UnitDBusLevel
impl Eq for UnitDBusLevel
impl StructuralPartialEq for UnitDBusLevel
Auto Trait Implementations§
impl Freeze for UnitDBusLevel
impl RefUnwindSafe for UnitDBusLevel
impl Send for UnitDBusLevel
impl Sync for UnitDBusLevel
impl Unpin for UnitDBusLevel
impl UnsafeUnpin for UnitDBusLevel
impl UnwindSafe for UnitDBusLevel
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HasParamSpecDefaulted for Twhere
T: StaticType + FromGlib<i32> + IntoGlib<GlibType = i32> + HasParamSpec<ParamSpec = ParamSpecEnum> + Default,
impl<T> HasParamSpecDefaulted for Twhere
T: StaticType + FromGlib<i32> + IntoGlib<GlibType = i32> + HasParamSpec<ParamSpec = ParamSpecEnum> + Default,
type BuilderFnDefaulted = fn(&str) -> ParamSpecEnumBuilder<'_, T>
fn param_spec_builder_defaulted() -> <T as HasParamSpecDefaulted>::BuilderFnDefaulted
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.