Enum JobResult
#[non_exhaustive]pub enum JobResult {
Show 14 variants
Done,
Canceled,
Timeout,
Failed,
Dependency,
Skipped,
Invalid,
Assert,
Unsupported,
Collected,
Once,
Frozen,
Concurrency,
Other(String),
}Expand description
The result of a finished job.
This is the result argument of the JobRemoved signal.
Variants (Non-exhaustive)§
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.
Done
The job finished with success.
Canceled
Someone cancelled the job before it finished. The operation itself may still go on.
Timeout
The job timeout expired.
Failed
The job failed.
Dependency
A job that this job depended on failed, so this job was removed.
Skipped
The job did not apply to the current state of the unit.
Invalid
The job was not valid.
Assert
An assertion of the unit failed.
Unsupported
The unit does not support the operation.
Collected
The manager unloaded the unit before the job finished.
Once
The unit ran before and can run only once.
Frozen
The unit is frozen.
Added in systemd 256.
Concurrency
The slice of the unit reached its concurrency limit.
Added in systemd 258.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for JobResult
impl<'de> Deserialize<'de> for JobResult
§fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JobResult
impl StructuralPartialEq for JobResult
Auto Trait Implementations§
impl Freeze for JobResult
impl RefUnwindSafe for JobResult
impl Send for JobResult
impl Sync for JobResult
impl Unpin for JobResult
impl UnsafeUnpin for JobResult
impl UnwindSafe for JobResult
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.