pub enum StartStopMode {
Replace,
Fail,
Isolate,
IgnoreDependencies,
IgnoreRequirements,
}Variants§
Replace
If “replace” the call will start the unit and its dependencies, possibly replacing already queued jobs that conflict with this.
Fail
If “fail” the call will start the unit and its dependencies, but will fail if this would change an already queued job.
Isolate
If “isolate” the call will start the unit in question and terminate all units that aren’t dependencies of it. Note that “isolate” mode is invalid for method StopUnit.
IgnoreDependencies
If “ignore-dependencies” it will start a unit but ignore all its dependencies.
IgnoreRequirements
If “ignore-requirements” it will start a unit but only ignore the requirement dependencies.
Implementations§
Source§impl StartStopMode
impl StartStopMode
Trait Implementations§
Source§impl Clone for StartStopMode
impl Clone for StartStopMode
Source§fn clone(&self) -> StartStopMode
fn clone(&self) -> StartStopMode
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 StartStopMode
impl Debug for StartStopMode
Source§impl Default for StartStopMode
impl Default for StartStopMode
Source§fn default() -> StartStopMode
fn default() -> StartStopMode
Returns the “default value” for a type. Read more
Source§impl From<&Variant> for StartStopMode
impl From<&Variant> for StartStopMode
Source§impl From<&str> for StartStopMode
impl From<&str> for StartStopMode
Source§impl From<StartStopMode> for Value
impl From<StartStopMode> for Value
Source§fn from(v: StartStopMode) -> Self
fn from(v: StartStopMode) -> Self
Converts to this type from the input type.
Source§impl From<Variant> for StartStopMode
impl From<Variant> for StartStopMode
Source§impl<'a> FromValue<'a> for StartStopMode
impl<'a> FromValue<'a> for StartStopMode
Source§type Checker = GenericValueTypeChecker<StartStopMode>
type Checker = GenericValueTypeChecker<StartStopMode>
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 StartStopMode
impl HasParamSpec for StartStopMode
type ParamSpec = ParamSpecEnum
Source§type SetValue = StartStopMode
type SetValue = StartStopMode
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, StartStopMode) -> ParamSpecEnumBuilder<'_, StartStopMode>
fn param_spec_builder() -> Self::BuilderFn
Source§impl IntoEnumIterator for StartStopMode
impl IntoEnumIterator for StartStopMode
type Iterator = StartStopModeIter
fn iter() -> StartStopModeIter ⓘ
Source§impl PartialEq for StartStopMode
impl PartialEq for StartStopMode
Source§impl StaticType for StartStopMode
impl StaticType for StartStopMode
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Source§impl ToValue for StartStopMode
impl ToValue for StartStopMode
Source§impl TryFromGlib<i32> for StartStopMode
impl TryFromGlib<i32> for StartStopMode
Source§impl ValueType for StartStopMode
impl ValueType for StartStopMode
Source§type Type = StartStopMode
type Type = StartStopMode
Type to get the
Type from. Read moreimpl Copy for StartStopMode
impl Eq for StartStopMode
impl StructuralPartialEq for StartStopMode
Auto Trait Implementations§
impl Freeze for StartStopMode
impl RefUnwindSafe for StartStopMode
impl Send for StartStopMode
impl Sync for StartStopMode
impl Unpin for StartStopMode
impl UnsafeUnpin for StartStopMode
impl UnwindSafe for StartStopMode
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.