Enum JobType Copy item path #[non_exhaustive]
pub enum JobType {
Show 13 variants Unset,
Start,
VerifyActive,
Stop,
Reload,
ReloadOrStart,
Restart,
TryRestart,
TryReload,
Nop,
ReloadOrRestart,
ReloadOrTryRestart,
Other(String ),
}Expand description The type of a job.
The JobType property and the job list entries use it. EnqueueUnitJob
takes it as the requested type and returns the type that was queued. The
values JobType::ReloadOrRestart and JobType::ReloadOrTryRestart are
valid only as a request. The service turns them into a reload or a restart.
This enum is marked as non-exhaustive Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The empty string, which means no job.
A job that starts the unit.
Check that the unit is active and fail if it is not.
Reload the unit if it runs and start it otherwise.
Restart the unit only if it runs.
Reload the unit only if it runs.
Reload the unit if it supports reload and restart it otherwise. Valid
only as a request.
Like reload-or-restart, but leave a unit that does not run alone.
Valid only as a request.
A value that this version of the crate doesn’t know.
Returns the D-Bus string of the value.
Converts this type into a shared reference of the (usually inferred) input type.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Deserialize this value from the given Serde deserializer.
Read more Formats the value using the given formatter.
Read more Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
The associated error which can be returned from parsing.
Parses a string
s to return a value of this type.
Read more Serialize this value into the given Serde serializer.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The signature for the implementing type, in parsed format.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Get a deserializer compatible with this parsed signature.
Returns the argument unchanged.
Instruments this type with the provided [
Span], returning an
Instrumented wrapper.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.