pub enum UnitFileStatus {
Show 14 variants
Unknown,
Alias,
Bad,
Disabled,
Enabled,
EnabledRuntime,
Generated,
Indirect,
Linked,
LinkedRuntime,
Masked,
MaskedRuntime,
Static,
Transient,
}Variants§
Unknown
Alias
Bad
Disabled
Enabled
EnabledRuntime
Generated
Indirect
Linked
LinkedRuntime
Masked
MaskedRuntime
Static
Transient
Implementations§
Source§impl UnitFileStatus
impl UnitFileStatus
Sourcepub fn from_strr(enablement_status: &str) -> UnitFileStatus
pub fn from_strr(enablement_status: &str) -> UnitFileStatus
Takes the string containing the state information from the dbus message and converts it into a UnitType by matching the first character.
pub fn as_str(&self) -> &'static str
pub fn label(&self) -> &'static str
pub fn tooltip_info(&self) -> Option<String>
pub fn is_runtime(&self) -> bool
pub fn has_status(&self) -> bool
Trait Implementations§
Source§impl Clone for UnitFileStatus
impl Clone for UnitFileStatus
Source§fn clone(&self) -> UnitFileStatus
fn clone(&self) -> UnitFileStatus
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 UnitFileStatus
impl Debug for UnitFileStatus
Source§impl Default for UnitFileStatus
impl Default for UnitFileStatus
Source§fn default() -> UnitFileStatus
fn default() -> UnitFileStatus
Returns the “default value” for a type. Read more
Source§impl Display for UnitFileStatus
impl Display for UnitFileStatus
Source§impl From<&str> for UnitFileStatus
impl From<&str> for UnitFileStatus
Source§impl From<String> for UnitFileStatus
impl From<String> for UnitFileStatus
Source§impl From<UnitFileStatus> for Value
impl From<UnitFileStatus> for Value
Source§fn from(v: UnitFileStatus) -> Self
fn from(v: UnitFileStatus) -> Self
Converts to this type from the input type.
Source§impl FromStr for UnitFileStatus
impl FromStr for UnitFileStatus
Source§impl<'a> FromValue<'a> for UnitFileStatus
impl<'a> FromValue<'a> for UnitFileStatus
Source§type Checker = GenericValueTypeChecker<UnitFileStatus>
type Checker = GenericValueTypeChecker<UnitFileStatus>
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 UnitFileStatus
impl HasParamSpec for UnitFileStatus
type ParamSpec = ParamSpecEnum
Source§type SetValue = UnitFileStatus
type SetValue = UnitFileStatus
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, UnitFileStatus) -> ParamSpecEnumBuilder<'_, UnitFileStatus>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for UnitFileStatus
impl Hash for UnitFileStatus
Source§impl IntoEnumIterator for UnitFileStatus
impl IntoEnumIterator for UnitFileStatus
type Iterator = UnitFileStatusIter
fn iter() -> UnitFileStatusIter ⓘ
Source§impl Ord for UnitFileStatus
impl Ord for UnitFileStatus
Source§fn cmp(&self, other: &UnitFileStatus) -> Ordering
fn cmp(&self, other: &UnitFileStatus) -> 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 UnitFileStatus
impl PartialEq for UnitFileStatus
Source§impl PartialOrd for UnitFileStatus
impl PartialOrd for UnitFileStatus
Source§impl StaticType for UnitFileStatus
impl StaticType for UnitFileStatus
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Source§impl ToValue for UnitFileStatus
impl ToValue for UnitFileStatus
Source§impl TryFromGlib<i32> for UnitFileStatus
impl TryFromGlib<i32> for UnitFileStatus
Source§impl ValueType for UnitFileStatus
impl ValueType for UnitFileStatus
Source§type Type = UnitFileStatus
type Type = UnitFileStatus
Type to get the
Type from. Read moreimpl Copy for UnitFileStatus
impl Eq for UnitFileStatus
impl StructuralPartialEq for UnitFileStatus
Auto Trait Implementations§
impl Freeze for UnitFileStatus
impl RefUnwindSafe for UnitFileStatus
impl Send for UnitFileStatus
impl Sync for UnitFileStatus
impl Unpin for UnitFileStatus
impl UnsafeUnpin for UnitFileStatus
impl UnwindSafe for UnitFileStatus
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.